Description
Changes the billing method of a cloud desktop.
Syntax
Action: ACS::ECD::ModifyDesktopChargeType
Properties:
regionId: String
desktopId: String
desktopChargeType: String
periodUnit: String
period: Number
autoPay: Boolean
Attributes
Attribute | Description | Type | Required | Default value | Limit |
regionId | The region ID. | String | No | {{ ACS::RegionId }} | |
desktopId | The ID of the cloud desktop. | String | Yes | ||
desktopChargeType | The billing method that you want to change for the cloud desktop. You can change the billing method only from pay-as-you-go to subscription. Set the value to PrePaid. | String | No | PrePaid | |
periodUnit | The unit of the subscription duration. | String | No | Month | |
period | The subscription duration. If the periodUnit attribute is set to Week, set the period attribute to 1. If the periodUnit attribute is set to Month, the valid values of the period attribute are 1, 2, 3, and 6. If the periodUnit attribute is set to Year, the valid values of the period attribute are 1, 2, 3, 4, and 5. | Number | No | 1 | |
autoPay | Specifies whether to enable automatic payment. Valid values: true: enables automatic payment. You must make sure that your Alibaba Cloud account has sufficient balance. Otherwise, an abnormal order is generated. false: disables automatic payment. In this case, an order is generated but not automatically paid. You can log on to the Alibaba Cloud Management Console and complete the payment based on the order number. | Boolean | No | True |
Output
None
References
For more information, see ACS::ECD::ModifyDesktopChargeType at GitHub.