テンプレート名
ACS-ECD-BulkyModifyDesktopAutoRenewAttribute
テンプレートの説明
複数のクラウドデスクトップの自動更新設定を一度に変更します。
テンプレートタイプ
自動化
所有者
Alibaba Cloud
入力パラメーター
パラメーター | 説明 | データ型 | 必須 | デフォルト値 | 制限 |
desktopIds | クラウドデスクトップの ID。 | リスト | はい | ||
renewalPeriodUnit | インスタンスの更新期間の単位。 | 文字列 | はい | ||
renewalPeriod | インスタンスの更新期間。 | 数値 | はい | ||
renewalStatus | クラウドデスクトップの自動更新ステータス。 | 文字列 | はい | ||
regionId | リージョン ID。 | 文字列 | いいえ | {{ ACS::RegionId }} | |
rateControl | レート制御設定。 | JSON | いいえ | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | CloudOps Orchestration Service (OOS) によってアシュームされる RAM ロール。 | 文字列 | いいえ | "" |
出力パラメーター
該当なし。
テンプレートの実行に必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"bssopenapi:SetRenewal"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
参照
ACS-ECD-BulkyModifyDesktopAutoRenewAttribute
テンプレートコンテンツ
FormatVersion: OOS-2019-06-01
Description:
en: Bulky modify ECD desktop auto renew attribute
name-en: ACS-ECD-BulkyModifyDesktopAutoRenewAttribute
Parameters:
regionId:
Type: String
Label:
en: RegionId
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
desktopIds:
Label:
en: DesktopIds
Type: List
renewalPeriodUnit:
Label:
en: RenewalPeriodUnit
Type: String
AllowedValues:
- M
- Y
renewalPeriod:
Description:
en: 'Valid values: 1, 2, 3, 6, 12'
Label:
en: RenewalPeriod
Type: Number
AllowedValues:
- 1
- 2
- 3
- 6
- 12
renewalStatus:
Description:
en: >-
Valid values:
AutoRenewal: Auto-renewal is enabled for the instance.
Normal: Auto-renewal is disabled for the instance.
NotRenewal: The instance will not be renewed upon expiration.
Label:
en: RenewalStatus
Type: String
AllowedValues:
- AutoRenewal
- Normal
- NotRenewal
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: modifyDesktopAutoRenewAttribute
Action: ACS::ECD::SetRenewal
Description:
en: Modifies desktop auto renew attr
Properties:
regionId: '{{ regionId }}'
desktopId: '{{ ACS::TaskLoopItem }}'
renewalPeriod: '{{ renewalPeriod }}'
renewalPeriodUnit: '{{ renewalPeriodUnit }}'
renewalStatus: '{{ renewalStatus }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ desktopIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- renewalPeriodUnit
- renewalPeriod
- renewalStatus
Label:
default:
en: Configure Parameters
- Parameters:
- regionId
- desktopIds
Label:
default:
en: Select ECD Desktops
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
en: Control Options