All Products
Search
Document Center

Elastic Compute Service:ModifyReservedInstanceAutoRenewAttribute

Last Updated:Apr 30, 2024

Enables or disables auto-renewal for one or more reserved instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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

cn-hangzhou
PeriodintegerNo

The auto-renewal cycle.

Valid values: 1 and 3.

1
PeriodUnitstringNo

The unit of the auto-renewal duration.

Valid values: Year and Month.

Month
RenewalStatusstringNo

Specifies whether to automatically renew the reserved instances. Valid values:

  • AutoRenewal: automatically renews the reserved instances.
  • Normal: manually renews the reserved instances.
AutoRenewal
ReservedInstanceIdarrayNo

The IDs of the reserved instances.

stringNo

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

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

2A4EA075-CB5B-41B7-B0EB-70D339F6****

Examples

Sample success responses

JSONformat

{
  "RequestId": "2A4EA075-CB5B-41B7-B0EB-70D339F6****"
}

Error codes

HTTP status codeError codeError messageDescription
403Abs.MissingParamter.InstanceIdReservedInstanceId should not be null.-
403InvalidParameter.ToManyInstanceIdsReservedInstanceId should be less than 100.-
403InvalidParameter.Duration%sThe specified Duration parameter is invalid.
403InvalidParameter.RenewalStatus%sThe specified RenewalStatus parameter is invalid.
403InvalidParameter.PeriodUnitThe specified parameter PeriodUnit is not valid.-
403InvalidParameter.PeriodThe specified parameter Period is not valid.-
403InvalidParameter%sThe specified parameter is invalid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history