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.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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
  • The number of the subscription units.
  • If PricingCycle is year, the value range is 1 to 3.
  • If PricingCycle is month, the value range is 1 to 9.
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.


Sample requests

http(s)://[Endpoint]/? Action=ConvertInstance
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.