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: StringAttributes
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 of the ECS instance. When the periodUnit attribute is set to Week, the valid values of the period attribute are integers from 1 to 4. When the periodUnit attribute is set to Month, the valid values of the period attribute are integers from 1 to 12, 24, 36, 48, and 60. | Number | Yes | ||
periodUnit | The unit of the subscription duration. | String | No | Month | |
includeDataDisks | Specifies 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 more information, see ACS::ECS::ModifyInstanceChargeType at GitHub.