Template name
ACS-ECD-BulkyModifyDesktopChargeType
Template description
Changes the billing method of multiple cloud desktops at a time.
Template type
Automated
Owner
Alibaba Cloud
Input parameters
Parameter | Description | Data type | Required | Default value | Limit |
desktopIds | The IDs of the cloud desktops. | List | Yes | ||
periodUnit | The unit of the subscription period. | String | Yes | ||
period | The subscription period. | Number | Yes | ||
regionId | The region ID. | String | No | {{ ACS::RegionId }} | |
desktopChargeType | The billing method that you want to change to for the cloud desktops. | String | No | PrePaid | |
autoPay | Specifies whether to enable the automatic payment feature. | Boolean | No | True | |
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:ModifyDesktopChargeType"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
References
ACS-ECD-BulkyModifyDesktopChargeType
Template content
FormatVersion: OOS-2019-06-01
Description:
en: Bulky Modify ECD desktop charge type
name-en: ACS-ECD-BulkyModifyDesktopChargeType
Parameters:
regionId:
Label:
en: RegionId
Type: String
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
desktopIds:
Label:
en: DesktopIds
Type: List
desktopChargeType:
Description:
en: Currently only supports conversion from postpaid to monthly prepaid, and the value is PrePaid
Label:
en: DesktopChargeType
Type: String
AllowedValues:
- PrePaid
Default: PrePaid
periodUnit:
Label:
en: PeriodUnit
Type: String
AllowedValues:
- Week
- Month
- Year
period:
Description:
en: "Valid values:
Valid values when PeriodUnit is set to Week: 1.
Valid values when PeriodUnit is set to Month: 1, 2, 3, and 6.
Valid values when PeriodUnit is set to Month: 1, 2, 3, 4, and 5."
Label:
en: Period
Type: Number
AllowedValues:
- 1
- 2
- 3
- 4
- 5
- 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.
Label:
en: AutoPay
Type: Boolean
Default: true
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: modifyDesktopChargeType
Description:
en: Modify desktop charge type
Action: ACS::ECD::ModifyDesktopChargeType
Properties:
regionId: '{{ regionId }}'
desktopId: '{{ ACS::TaskLoopItem }}'
desktopChargeType: '{{ desktopChargeType }}'
period: '{{ period }}'
periodUnit: '{{ periodUnit }}'
autoPay: '{{ autoPay }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ desktopIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- desktopChargeType
- periodUnit
- period
- autoPay
Label:
default:
en: Configure Parameters
- Parameters:
- regionId
- desktopIds
Label:
default:
en: Select ECD Desktops
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
en: Control Options