All Products
Search
Document Center

CloudOps Orchestration Service:ACS-ECD-BulkyRebuildDesktops

Last Updated:Nov 26, 2024

Template name

ACS-ECD-BulkyRebuildDesktops

Execute Now

Template description

Recreates multiple cloud computers at a time.

Template type

Automated

Owner

Alibaba Cloud

Input parameters

Parameter

Description

Data type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

desktopIds

The IDs of the cloud computers.

List

No

[]

rateControl

The rate control settings.

Json

No

{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10}

OOSAssumeRole

The RAM role that is assumed by CloudOps Orchestration Service (OOS).

String

No

""

Output parameters

N/A.

Permission policy that is required to execute the template

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "ecd:DescribeDesktops",
                "ecd:RebuildDesktops",
                "ecd:StopDesktops"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

References

ACS-ECD-BulkyRebuildDesktops

Template content

FormatVersion: OOS-2019-06-01
Description:
  en: Bulky rebuild ECD desktops   
  name-en: ACS-ECD-BulkyRebuildDesktops   
Parameters:
  regionId:
    Label:
      en: RegionId      
    Type: String
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  desktopIds:
    Label:
      en: DesktopIds      
    Type: List
    Default: []
  rateControl:
    Label:
      en: RateControl       
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 10
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole      
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: rebuildDesktop
    Action: ACS::ECD::RebuildDesktop
    Description:
      en: Rebuild desktops       
    Properties:
      regionId: '{{ regionId }}'
      desktopId: '{{ ACS::TaskLoopItem }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ desktopIds }}'
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - regionId
          - desktopIds
        Label:
          default:            
            en: Select ECD Desktops
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:            
          en: Control Options