Modifies the auto-renewal attributes of reserved instances. You can cancel or disable the auto-renewal feature for reserved instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyReservedInstanceAutoRenewAttribute |
update |
*ReservedInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the reserved instances. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| Period |
integer |
No |
The auto-renewal cycle. Valid values: 1 and 3. |
1 |
| PeriodUnit |
string |
No |
The unit of the auto-renewal duration. Valid values: Year and Month. |
Month |
| RenewalStatus |
string |
No |
Specifies whether to automatically renew the reserved instances. Valid values:
|
AutoRenewal |
| ReservedInstanceId |
array |
No |
The IDs of the reserved instances. |
|
|
string |
No |
The ID of reserved instance N. You can call the DescribeReservedInstances operation to query the IDs of reserved instances that you purchased. You can modify the auto-renewal attributes only for reserved instances that are within the validity period. You can specify the IDs of up to 100 reserved instances in a single request. |
ecsri-ajdfaj**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
2A4EA075-CB5B-41B7-B0EB-70D339F6**** |
Examples
Success response
JSON format
{
"RequestId": "2A4EA075-CB5B-41B7-B0EB-70D339F6****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.Duration | The specified parameter Duration is invalid. | |
| 403 | Abs.MissingParamter.InstanceId | ReservedInstanceId should not be null. | |
| 403 | InvalidParameter.ToManyInstanceIds | ReservedInstanceId should be less than 100. | |
| 403 | InvalidParameter.PeriodUnit | The specified parameter PeriodUnit is not valid. | |
| 403 | InvalidParameter.Period | The specified parameter Period is not valid. | |
| 403 | InvalidParameter.RenewalStatus | The specified parameter RenewalStatus is not valid. | The specified RenewalStatus parameter is invalid. |
| 403 | InValidParameter | Parameter invalid.%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.