Queries the auto-renewal state of one or more subscription reserved instances.


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 DescribeReservedInstanceAutoRenewAttribute

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

RegionId String Yes cn-hangzhou

The region ID of the reserved instance. You can call the DescribeRegions operation to query the most recent region list.

ReservedInstanceId.N String Yes ecsri-ajdfaj****

The ID of reserved instance N. You can call the DescribeReservedInstances operation to query the IDs of reserved instances that you purchased. You can query only the auto-renewal state of reserved instances that have taken effect. A reserved instance has taken effect if it is in the Active state.

You can specify the IDs of up to 10 reserved instances in a single request.

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE7****

The ID of the request.

ReservedInstanceRenewAttributes Array of ReservedInstanceRenewAttribute

Details about the auto-renewal settings of the reserved instances.

PeriodUnit String Month

The unit of the auto-renewal duration.

Valid value: Year.

Duration Integer 1

The auto-renewal duration.

ReservedInstanceId String ecsri-ajdfaj****

The ID of the reserved instance.

RenewalStatus String AutoRenewal

The auto-renewal state of the reserved instance. Valid values:

  • AutoRenewal: The reserved instance is automatically renewed.
  • Normal: You must manually renew the reserved instance.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "04F0F334-1335-436C-A1D7-6C044FE7****",
  "ReservedInstanceRenewAttributes" : {
    "ReservedInstanceRenewAttribute" : [ {
      "PeriodUnit" : "Month",
      "Duration" : 1,
      "ReservedInstanceId" : "ecsri-ajdfaj****",
      "RenewalStatus" : "AutoRenewal"
    }, {
      "PeriodUnit" : "Month",
      "Duration" : 1,
      "ReservedInstanceId" : "ecsri-abjkql****",
      "RenewalStatus" : "AutoRenewal"
    } ]

Error codes

HTTP status code Error code Error message Description
403 InvalidParameter %s The error message returned because a specified parameter is invalid.
403 ChargeTypeViolation The operation is not permitted due to charge type of the instance. The error message returned because the operation is not supported while the instance uses the current billing method.

For a list of error codes, see Service error codes.