Renews the subscription of a specified instance.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesRenewInstance

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

InstanceIdStringYesamqp-cn-zvp2ajsj****

The ID of the instance.

ProductCodeStringYesons

The code of the service. Set the value to ons.

RenewPeriodIntegerYes6

The period of the subscription renewal. Unit: month. Valid values:

  • 1~3
  • 6
  • 12
  • 24
  • 36
ClientTokenStringNoASKJHKLASJHAFSLKJH

The client token that is used to ensure the idempotence of the request.

ProductTypeStringNoons_onsproxy_public_intlThe type of the service. Set the value to ons_onsproxy_public_intl.

Response parameters

ParameterTypeExampleDescription
CodeStringSuccess

The HTTP status code.

DataStruct

The returned data.

OrderIdString21016588106****

The ID of the order.

MessageStringSuccessful!

The prompt message.

RequestIdString60CE9D3C5A-4346-52B5-AC15-83CFEF73****

The ID of the request.

SuccessBooleantrue

Indicates whether the request is successful.

Examples

Sample requests

http(s)://business.aliyuncs.com/?Action=RenewInstance
&ProductCode=ons
&InstanceId=amqp-cn-zvp2ajsj****
&RenewPeriod=6
&ProductType=ons_onsproxy_public_intl
&<Common request parameters>

Sample success responses

XML format

<RenewInstanceResponse>
      <Message>Successful!</Message>
      <RequestId>CE9D3C5A-4346-52B5-AC15-83CFEF73****</RequestId>
      <Data>
            <OrderId>21016588106****</OrderId>
      </Data>      
      <Code>Success</Code>
      <Success>true</Success>
</RenewInstanceResponse>

JSON format

{
  "Message": "Successful!",
  "RequestId": "CE9D3C5A-4346-52B5-AC15-83CFEF73****",
  "Data": {
    "OrderId": 21016588106****
  },
  "Code": "Success",
  "Success": true
}

Error codes

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