You can call this operation to reactive a pay-as-you-go instance that has expired or has an overdue payment.


When you call this operation, take note of the following items:

  • The instance must be in the Expired (Stopped) state.
  • You must pay the bills and reactivate the instance within 15 days after the instance is suspended because of overdue payments. Otherwise, the instance is released and the data cannot be restored. If you cannot reactivate a VPC-type instance, try again later or submit a ticket to contact Alibaba Cloud.
  • After you pay the overdue bills, you must have a balance of more than CNY 100 in your account. Otherwise, you cannot reactive the instance. For more information about service limits, see Reactivate instances.
  • After this operation is called, the instance enters the Starting (Starting) state.
  • The OperationLocks of a locked instance cannot be "LockReason" : "security".


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No ReactivateInstances

The operation that you want to perform. Set the value to ReactivateInstances.

InstanceId String Yes i-bp67acfmxazb4p****

The ID of the instance that you want to reactivate.

RegionId String No cn-hangzhou

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

Response parameters

Parameter Type Example Description
RequestId String 51AB7717-6E1A-4D1D-A44D-54CBxxxxxxxx

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

	"RequestId": "51AB7717-6E1A-4D1D-A44D-54CBxxxxxxxx"

Error codes

HTTP status code Error code Error message Description
404 InvalidInstanceId.NotFound The specified InstanceId does not exist. The error message returned because the specified value of the InstanceId parameter does not exist.
404 InvalidPayType.NotSupport The specified pre pay instance not support. The error message returned because the operation is not supported for subscription instances.
403 IncorrectInstanceStatus The current status of the resource does not support this operation. The error message returned because the operation is not supported while the instance is in the current state.
403 InstanceLockedForSecurity The specified operation is denied as your instance is locked for security reasons. The error message returned because the operation is not supported while the instance is locked for security reasons.
403 InsufficientBalance Your account does not have enough balance. The error message returned because your account balance is insufficient. Top up your account and try again.
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred. Try again later. If the problem persists, submit a ticket.
400 ReopenInstance.InstanceStatusNotValid Instance status is not Expired, ImageExpired or EcsAndImageExpired. The error message returned because the instance fails to be started. A possible cause is that the instance or image has expired.

For a list of error codes, visit the API Error Center.