You can call this operation to renew the current instance.

When you call this operation, make sure that the payType must be Postpaid.

Debugging

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 RenewInstance

The operation that you want to perform. Set the value to RenewInstance.

ClusterId String Yes hb-bp16o0pd52e3y582s

The ID of the instance.

Duration Integer Yes 5

The number of renewal periods.

  • If PricingCycle is year, the value range is 1 to 3.
  • If PricingCycle is month, the value range is 1 to 9.

When you set the billing method parameter to PREPAY, this parameter takes effect.

PricingCycle String Yes month

The unit of the renewal period. Valid values:

  • year
  • month

When you set the billing method parameter to PREPAY, this parameter takes effect.

Response parameters

Parameter Type Example Description
OrderId Long 55128452

The ID of the order.

RequestId String 70F2D5B8-632F-4045-8F2D-2ADF73A31C08

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=RenewInstance
&ClusterId=hb-bp16o0pd52e3y582s
&Duration=5
&PricingCycle=month
&<Common request parameters>

Sample success responses

XML format

<OrderId>55128452</OrderId>
<RequestId>70F2D5B8-632F-4045-8F2D-2ADF73A31C08</RequestId>

JSON format

{
	"RequestId":"70F2D5B8-632F-4045-8F2D-2ADF73A31C08",
	"OrderId":55128452
}

Error codes

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