Reactivates a pay-as-you-go Elastic Compute Service (ECS) instance that has expired or has been recycled due to overdue payments.
Operation description
When you call this operation, take note of the following items:
- The instance must be in the
Stopped
state.**** - If an instance has overdue payments for more than 15 days, the instance is stopped and released, and data on the instance can no longer be recovered. You must complete the overdue payments and reactivate the instance within 15 days. If you cannot reactivate an instance that resides in a virtual private cloud (VPC), wait a few minutes and try again.
- After the operation is called, the instance enters the
Starting
state.**** - You cannot call this operation on ECS instances that are locked for security reasons. If
OperationLocks
in the response returned for the DescribeInstances operation containsLockReason: security
, the instance is locked for security reasons. For more information, see API behavior when an instance is locked for security reasons.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
InstanceId | string | Yes | The ID of the instance that you want to reactivate. | i-bp67acfmxazb4p**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "51AB7717-6E1A-4D1D-A44D-54CB123ABC"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ReopenInstance.InstanceNotEnoughBalance | Reopen instance must have enough account balance. | - |
400 | ReopenInstance.ImageNotEnoughBalance | Reopen instance must have enough cash balance. | - |
400 | ReopenInstance.InstanceStatusNotValid | Instance status is not Expired, ImageExpired or EcsAndImageExpired. | The instance cannot be restarted because the instance or its image has expired. |
403 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | The resource is in a state that does not support the current operation. |
403 | InstanceLockedForSecurity | The specified operation is denied as your instance is locked for security reasons. | - |
403 | InsufficientBalance | Your account does not have enough balance. | Your account balance is insufficient. Add funds to your account and try again. |
404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | The specified instance does not exist. |
404 | InvalidPayType.NotSupport | The specified pre pay instance not support. | Subscription instances do not support the operation. |
500 | InternalError | The request processing has failed due to some unknown error. | An internal error has occurred. Try again later. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history