Modifies the billing method. Currently, this operation only allows you to change the billing method from pay-as-you-go to subscription.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceGroupIds |
array |
Yes |
The IDs of the instance groups. |
|
|
string |
No |
The ID of the instance group. |
ag-25nt4kk9whhdh**** |
|
| ChargeType |
string |
Yes |
The billing method. Valid values: Note
Currently, this operation only allows you to change the billing method from pay-as-you-go to subscription. Valid values:
|
PrePaid |
| Period |
integer |
No |
The subscription duration. The unit is specified by PeriodUnit. Valid values: 1 Month, 2 Months, 3 Months, 6 Months, and 1 Year. |
1 |
| PeriodUnit |
string |
No |
The unit of the subscription duration. Valid values:
|
Month |
| AutoPay |
boolean |
No |
Specifies whether to enable the auto-payment feature. Default value: false. |
false |
| AutoRenew |
boolean |
No |
Specifies whether to enable the auto-renewal feature. Default value: false. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
1A923337-44D9-5CAD-9A53-95084BD4**** |
| InstanceGroupIds |
array |
The IDs of the instance groups. |
|
|
string |
The ID of the instance group. |
ag-cuv4scs4obxch**** |
|
| OrderId |
string |
The ID of the order. |
22326560487**** |
Examples
Success response
JSON format
{
"RequestId": "1A923337-44D9-5CAD-9A53-95084BD4****",
"InstanceGroupIds": [
"ag-cuv4scs4obxch****"
],
"OrderId": "22326560487****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.