Renews a subscription instance.

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
Duration Integer Yes 1

The renewal period. If the PricingCycle parameter is set to Month, valid values are 1 to 9. If the PricingCycle parameter is set to Year, valid values are 1 to 3.

InstanceId String Yes ts-xxxxxxxxxxxxxxxxx

The ID of the instance.

PricingCycle String Yes Month

The unit of the renewal period. Valid values: Month and Year.

RegionId String Yes cn-shanghai

The ID of the region.

Response parameters

Parameter Type Example Description
OrderId Long 100000000000000

The ID of the order.

RequestId String 57540985-3C11-4588-96FD-93413C6282EF

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=RenewTSDBInstance
&Duration=1
&InstanceId=ts-xxxxxxxxxxxxxxxxx
&PricingCycle=Month
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<RequestId>57540985-3C11-4588-96FD-93413C6282EF</RequestId>
<OrderId>100000000000000</OrderId>

JSON format

{
    "RequestId": "57540985-3C11-4588-96FD-93413C6282EF",
    "OrderId": 100000000000000
}

Error codes

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