Nama template
ACS-ECD-BulkyRunCommand
Deskripsi template
Menjalankan perintah secara bersamaan pada beberapa desktop cloud.
Tipe template
Otomatis
Pemilik
Alibaba Cloud
Parameter input
Parameter | Deskripsi | Tipe data | Diperlukan | Nilai default | Batasan |
commandType | Tipe perintah Cloud Assistant. | String | Ya | ||
commandContent | Konten dari perintah Cloud Assistant. | String | Ya | ||
regionId | ID wilayah. | String | Tidak | {{ ACS::RegionId }} | |
desktopIds | ID desktop cloud. | List | Tidak | [] | |
contentEncoding | Metode pengkodean perintah. | String | Tidak | PlainText | |
timeout | Periode timeout perintah. | Number | Tidak | 600 | |
rateControl | Pengaturan kontrol laju. | Json | Tidak | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | Peran RAM yang diasumsikan oleh CloudOps Orchestration Service (OOS). | String | Tidak | "" |
Parameter output
Parameter | Deskripsi | Tipe data |
commandOutputs | List |
Kebijakan izin yang diperlukan untuk mengeksekusi template
{
"Version": "1",
"Statement": [
{
"Action": [
"ecd:DescribeInvocations",
"ecd:RunCommand"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Referensi
Konten Template
FormatVersion: OOS-2019-06-01
Description:
en: Jalankan perintah massal pada desktop ECD
name-en: ACS-ECD-BulkyRunCommand
Parameters:
regionId:
Label:
en: RegionId
Type: String
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
desktopIds:
Label:
en: DesktopIds
Type: List
Default: []
commandType:
Label:
en: CommandType
Type: String
AllowedValues:
- RunBatScript
- RunPowerShellScript
contentEncoding:
Label:
en: ContentEncoding
Type: String
AllowedValues:
- PlainText
- Base64
Default: PlainText
commandContent:
Label:
en: CommandContent
Type: String
AssociationProperty: Code
timeout:
Label:
en: Timeout
Type: Number
Default: 600
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: runCommand
Action: ACS::ECD::RunCommand
Description:
en: Jalankan perintah pada desktop
Properties:
regionId: '{{ regionId }}'
desktopId: '{{ ACS::TaskLoopItem }}'
commandType: '{{ commandType }}'
contentEncoding: '{{ contentEncoding }}'
commandContent: '{{ commandContent }}'
timeout: '{{ timeout }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ desktopIds }}'
Outputs:
commandOutputs:
AggregateType: Fn::ListJoin
AggregateField: commandOutput
Outputs:
commandOutput:
Type: String
ValueSelector: invocationOutput
Outputs:
commandOutputs:
Type: List
Value: '{{ runCommand.commandOutputs }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- commandType
- contentEncoding
- commandContent
- timeout
Label:
default:
en: Konfigurasi Parameter
- Parameters:
- regionId
- desktopIds
Label:
default:
en: Pilih Desktop ECD
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
en: Opsi Kontrol