模板名稱
ACS-ECD-BulkyRenewDesktops 批量續費包年包月云桌面
模板描述
批量續費包年包月云桌面
模板類型
自動化
所有者
Alibaba Cloud
輸入參數
參數名稱 | 描述 | 類型 | 是否必填 | 默認值 | 約束 |
autoPay | 是否自動支付 | Boolean | 是 | ||
regionId | 地域ID | String | 否 | {{ ACS::RegionId }} | |
desktopIds | 云桌面ID | List | 否 | [] | |
periodUnit | 續費時長的單位 | String | 否 | Month | |
period | 續費時長 | Number | 否 | 1 | |
rateControl | 任務執行的并發比率 | Json | 否 | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | OOS扮演的RAM角色 | String | 否 | "" |
輸出參數
無
執行此模板需要的權限策略
{
"Version": "1",
"Statement": [
{
"Action": [
"ecd:RenewDesktops"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
詳情
模板內容
FormatVersion: OOS-2019-06-01
Description:
en: Bulky renew subscription cloud desktops
zh-cn: 批量續費包年包月云桌面
name-en: ACS-ECD-BulkyRenewDesktops
name-zh-cn: 批量續費包年包月云桌面
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: 地域ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
desktopIds:
Label:
en: DesktopIds
zh-cn: 云桌面ID
Type: List
Default: [ ]
periodUnit:
Label:
en: PeriodUnit
zh-cn: 續費時長的單位
Type: String
AllowedValues:
- Year
- Month
Default: Month
period:
Description:
en: >-
The valid values of this parameter are determined by the PeriodUnit value.
If PeriodUnit is set to Month, the valid values of the Period parameter are 1, 2, 3, and 6.
If PeriodUnit is set to Year, the valid values of the Period parameter are 1, 2, 3, 4, and 5.
zh-cn: >-
取值范圍由參數PeriodUnit的值決定。
PeriodUnit為Month時,取值范圍為:1、2、3、6。
PeriodUnit為Year時,取值范圍為:1~5。
Label:
en: Period
zh-cn: 續費時長
Type: Number
Default: 1
MinValue: 1
MaxValue: 6
autoPay:
Description:
en: >-
Valid values:
true: enables automatic payment. Make sure that you have sufficient balance in your account. Otherwise, abnormal orders are generated
false: generates the order with no payment made. You can log on to the EDS console and complete the payment based on the order number
zh-cn: >-
取值范圍:
true:自動支付。請確保賬戶余額充足,否則會產生異常訂單
false:只產生訂單,不支付。您可以根據返回的訂單號登錄控制臺進行支付
Label:
en: AutoPay
zh-cn: 是否自動支付
Type: Boolean
rateControl:
Label:
en: RateControl
zh-cn: 任務執行的并發比率
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: OOS扮演的RAM角色
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: renewDesktop
Action: 'ACS::ExecuteAPI'
Description:
en: Renew desktops
zh-cn: 續費云桌面
Properties:
Service: ECD
API: RenewDesktops
Parameters:
RegionId: '{{ regionId }}'
DesktopId:
- '{{ ACS::TaskLoopItem }}'
Period: '{{ period }}'
PeriodUnit: '{{ periodUnit }}'
AutoPay: '{{ autoPay }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ desktopIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- periodUnit
- period
- autoPay
Label:
default:
zh-cn: 配置參數
en: Configure Parameters
- Parameters:
- regionId
- desktopIds
Label:
default:
zh-cn: 選擇云桌面
en: Select ECD Desktops
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: 高級選項
en: Control Options
文檔內容是否對您有幫助?