Last Updated: Jan 29, 2018


Start a specified instance. When you call this interface, consider the following:

  • You can only run this interface when the instance is in Stopped status.
  • After you run this interface successfully, the specified instance is in Starting status.
  • If the specified instance is locked, and the OperationLocks of the instance indicates LockReason: security, you cannot start the instance.

Request parameters

Name Type Required Description
Action String Yes The name of the API. Value: StartInstance.
InstanceId String Yes ID of the instance.
InitLocalDisk Boolean No Recover to the previous normal status of your local disk when exceptions occurs. Applicable to instance types of D1, I1, and I2 instance type family. Optional values:
  • true: Recover the local disk to the previous normal status. The accumulated data starting from the previous normal status is overwritten.
  • false: Skip the recovery, and keep the status of the local disk unchanged.

Response parameters

All parameters are common response parameters. For more information, see Common parameters.


Request example

  2. &InstanceId=i-instance1
  3. &<Common Request Parameters>

Response example

XML format

  1. <StartInstanceResponse>
  2. <RequestId>C0003E8B-B930-4F59-ADC0-0E209A9012A8</RequestId>
  3. </StartInstanceResponse>

JSON format

  1. {
  2. "RequestId": "C0003E8B-B930-4F59-ADC0-0E209A9012A8"
  3. }

Error codes

Error code Error message HTTP status code Meaning
MissingParameter The input parameter InstanceId that is mandatory for processing this request is not supplied. 400 You must specify the InstanceId.
DiskError Incorrect Disk Status 403 Your disk is in an abnormal status.
IncorrectInstanceStatus The current state of the instance does not support this operation. 403 The current state of the instance does not support this operation.
InstanceLockedForSecurity The specified operation is denied as your instance is locked for security reasons. 403 Operation is denied because the resource is locked for security reasons.
InstanceNotReady The specified instance is not ready for use 403 The specified instance is being created.
InsufficientBalance Your account does not have enough balance. 403 The instance cannot be started because the account does not have enough balance.
InvalidInstanceId.NotFound The specified InstanceId does not exist. 404 The specified InstanceId does not exist.
InternalError The request processing has failed due to some unknown error. 500 Internal error, please try again later.
Thank you! We've received your feedback.