All Products
Document Center

Elastic Compute Service:ModifyInstanceAutoReleaseTime

Last Updated:May 14, 2024

Sets or cancels automatic release time for a pay-as-you-go Elastic Compute Service (ECS) instance. If you set the automatic release time for an instance, the instance is automatically released at the specified time. Proceed with caution when you perform this operation.


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


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


The ID of the instance.


The automatic release time of the instance. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC+0.

  • If the value of seconds (ss) is not 00, the time is automatically rounded to the nearest minute based on the value of minutes (mm).
  • The release time must be at least 30 minutes later than the current time.
  • The release time must be at most three years later than the current time.

If AutoReleaseTime is not configured, the automatic release feature is disabled, and the instance will not be automatically released.


Response parameters


The request ID.



Sample success responses


  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"

Error codes

HTTP status codeError codeError messageDescription
400MissingParameterInstanceId should not be null.The InstanceId parameter is required.
400InvalidAutoReleaseTime.MalformedThe specified parameter autoReleaseTime is not valid.The specified automatic release time is invalid. Specify the time in UTC in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format.
400UnsupportedParameterThe parameters is unsupported.The specified parameter is invalid.
403ChargeTypeViolationThe operation is not permitted due to charge type of the instance.The operation is not supported while the instance is using the current billing method.
404NoSuchResourceThe specified resource is not found.The specified resource does not exist.
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.An internal error has occurred. Try again later.

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

Change history

Change timeSummary of changesOperation
No change history