Changes the billing method of an ECS instance.
Description
Changes the billing method of an Elastic Compute Service (ECS) instance.
Syntax
Action: ACS::ECS::ModifyInstanceChargeType
Properties:
regionId: String
instanceId: String
instanceChargeType: String
period: Number
periodUnit: String
includeDataDisks: Boolean
networkChargeType: String
Attributes
|
Attribute |
Description |
Type |
Required |
Default value |
Limit |
|
regionId |
The region ID. |
String |
No |
{{ ACS::RegionId }} |
|
|
instanceId |
The ID of the ECS instance. |
String |
Yes |
||
|
instanceChargeType |
The billing method of the ECS instance. |
String |
No |
PostPaid |
|
|
period |
The subscription duration. Valid values when periodUnit is set to Week: 1 to 4. Valid values when periodUnit is set to Month: 1 to 12, 24, 36, 48, and 60. |
Number |
Yes |
||
|
periodUnit |
The unit of the subscription duration. |
String |
No |
Month |
|
|
includeDataDisks |
Whether to change the billing method of all data disks attached to the instance from pay-as-you-go to subscription. |
Boolean |
No |
False |
|
|
networkChargeType |
The billing method for network usage. |
String |
No |
PayByTraffic |
Output
None
References
For the source template, see ACS::ECS::ModifyInstanceChargeType on GitHub.