Enables or disables auto-renewal for one or more reserved instances.
Debugging
Authorization information
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 the reserved instance. You can call the DescribeReservedInstances operation to query the IDs of reserved instances that you purchased. Only the IDs of reserved instances that are in the Active state can be specified. You can specify up to 100 reserved instance IDs in a single request. | ecsri-ajdfaj**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "2A4EA075-CB5B-41B7-B0EB-70D339F6****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Abs.MissingParamter.InstanceId | ReservedInstanceId should not be null. | - |
403 | InvalidParameter.ToManyInstanceIds | ReservedInstanceId should be less than 100. | - |
403 | InvalidParameter.Duration | %s | The specified Duration parameter is invalid. |
403 | InvalidParameter.RenewalStatus | %s | The specified RenewalStatus parameter is invalid. |
403 | InvalidParameter.PeriodUnit | The specified parameter PeriodUnit is not valid. | - |
403 | InvalidParameter.Period | The specified parameter Period is not valid. | - |
403 | InvalidParameter | %s | The specified parameter is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|