You can call this operation to convert the instance billing method from pay-as-you-go to subscription.
Note: When you call this operation, make sure that the payType must be Postpaid.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ConvertInstance |
The operation that you want to perform. Set the value to ConvertInstance. |
ClusterId | String | Yes | hb-bp16o0pd52e3y582s |
The ID of the instance. |
Duration | Integer | Yes | 7 |
|
PricingCycle | String | Yes | month |
The unit of the subscription cycle. Valid values: year and month. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
OrderId | Long | 54124542154 |
The ID of the order. |
RequestId | String | 50373857-C47B-4B64-9332-D0B5280B59EA |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ConvertInstance
&ClusterId=hb-bp16o0pd52e3y582s
&Duration=7
&PricingCycle=month
&<Common request parameters>
Sample success responses
XML
format
<OrderId>54124542154</OrderId>
<RequestId>50373857-C47B-4B64-9332-D0B5280B59EA</RequestId>
JSON
format
{
"RequestId":"50373857-C47B-4B64-9332-D0B5280B59EA",
"OrderId":"54124542154"
}
Error codes
For a list of error codes, visit the API Error Center.