Restarts a pay-as-you-go ECS instance that has expired or been recycled due to an overdue payment.
Operation description
After you settle the overdue bill for a pay-as-you-go instance, you do not need to call this operation to activate the instance. The system automatically restarts the instance and restores it to the state before the overdue payment. Automatic restarts may occasionally fail. Check whether the automatic restart succeeds. If the automatic restart fails, call this operation to manually restart the instance.
-
After you settle the overdue bill, the total value of your Alibaba Cloud account balance (cash balance) and vouchers must be at least CNY 100.00. Otherwise, the instance cannot be restarted.
-
The instance must be in the expired (
Stopped) or being recycled due to overdue payment (Stopped) state. -
Instances that are locked for security reasons cannot be started by calling this operation. For more information, see Impact of resource security locks on API calls.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ReActivateInstances |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the instance. You can call DescribeRegions to query the most recent list of regions. |
cn-hangzhou |
| InstanceId |
string |
Yes |
The instance ID of the instance that you want to restart. |
i-bp67acfmxazb4p**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
51AB7717-6E1A-4D1D-A44D-54CB123ABC |
Examples
Success response
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. |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | IncorrectInstanceStatus | The current status of the resource does not support this 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. | |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | The specified instanceId is invalid. |
| 404 | InvalidPayType.NotSupport | The specified pre pay instance not support. | Subscription instances do not support the operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.