本接口用于查询一个或多个预留实例券自动续费属性,包括自动续费时长和自动续费状态。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ecs:DescribeReservedInstanceAutoRenewAttribute |
get |
*ReservedInstance
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
预留实例券所属的地域 ID。 您可以调用 DescribeRegions 获取最新的阿里云地域列表。 |
cn-hangzhou |
| ReservedInstanceId |
array |
否 |
预留实例券 ID 数组。 |
|
|
string |
否 |
预留实例券 ID。您可以调用 DescribeReservedInstances 查看已购买的预留实例券。 单次续费的预留实例券数量最多不超过 100 个。 |
ecsri-ajdfaj**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
04F0F334-1335-436C-A1D7-6C044FE7**** |
| ReservedInstanceRenewAttributes |
object |
||
| ReservedInstanceRenewAttribute |
array<object> |
由 ReservedInstanceRenewAttribute 组成的数组格式,返回预留实例券的自动续费设置信息。 |
|
|
object |
|||
| PeriodUnit |
string |
续费单位。 可能值:Year。 |
Month |
| Duration |
integer |
自动续费时长。 |
1 |
| ReservedInstanceId |
string |
预留实例券 ID。 |
ecsri-ajdfaj**** |
| RenewalStatus |
string |
预留实例券自动续费状态。可能值:
|
AutoRenewal |
示例
正常返回示例
JSON格式
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
"ReservedInstanceRenewAttributes": {
"ReservedInstanceRenewAttribute": [
{
"PeriodUnit": "Month",
"Duration": 1,
"ReservedInstanceId": "ecsri-ajdfaj****",
"RenewalStatus": "AutoRenewal"
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 403 | ChargeTypeViolation | Pay-As-You-Go dedicated host do not support this operation. | |
| 403 | MissingParamter.InstanceId | ReservedInstanceId should not be null. | ReservedInstanceId不能为空 |
| 403 | InvalidParameter.ToManyInstanceIds | ReservedInstanceId should be less than 100. | |
| 403 | InValidParameter | Parameter invalid.%s | 无效的参数。 |
| 403 | ResourceStatusViolation | The operation is not permitted due to resource status of the instance. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。