Queries the auto-renewal state of one or more subscription reserved instances.
Debugging
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. |
|
ReservedInstanceRenewAttribute | |||
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:
|
Examples
Sample requests
http(s)://ecs.aliyuncs.com/?Action=DescribeReservedInstanceAutoRenewAttribute
&RegionId=cn-hangzhou
&ReservedInstanceId.1=ecsri-ajdfaj****
&ReservedInstanceId.2=ecsri-abjkql****
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeReservedInstanceAutoRenewAttributeResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE7****</RequestId>
<ReservedInstanceRenewAttributes>
<ReservedInstanceRenewAttribute>
<PeriodUnit>Month</PeriodUnit>
<Duration>1</Duration>
<ReservedInstanceId>ecsri-ajdfaj****</ReservedInstanceId>
<RenewalStatus>AutoRenewal</RenewalStatus>
</ReservedInstanceRenewAttribute>
<ReservedInstanceRenewAttribute>
<PeriodUnit>Month</PeriodUnit>
<Duration>1</Duration>
<ReservedInstanceId>ecsri-abjkql****</ReservedInstanceId>
<RenewalStatus>AutoRenewal</RenewalStatus>
</ReservedInstanceRenewAttribute>
</ReservedInstanceRenewAttributes>
</DescribeReservedInstanceAutoRenewAttributeResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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.