閱讀985 返回首頁    go 阿裏雲


啟動實例__實例相關接口_API 參考_雲服務器 ECS-阿裏雲

描述

啟動一個指定的實例。

  • 接口調用成功後實例進入 Starting 狀態。
  • 實例狀態必須為 Stopped,才可以調用該接口。
  • 被安全控製在實例的 OperationLocks 中標記了 "LockReason" : "security" 的鎖定狀態時,不能啟動實例。

請求參數

名稱 類型 是否必須 描述
Action String 係統規定參數,取值:StartInstance
InstanceId String 指定啟動的實例 ID

返回參數

全是公共返回參數,詳見公共返回參數

錯誤碼

錯誤代碼 描述 Http 狀態碼 語義
InvalidInstanceId.NotFound The InstanceId provided does not exist in our records. 404 指定的 InstanceId 不存在
MissingParameter The input parameter "InstanceId" that is mandatory for processing this request is not supplied. 400 缺少 InstanceId 值
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. 403 實例欠費,拒絕啟動
InternalError The request processing has failed due to some unknown error. 500 內部錯誤
InstanceNotReady The specified instance is not ready for use 403 指定的 Instance 還沒有創建完
DiskError IncorrectDiskStatus 403 不正常的磁盤狀態

示例

請求示例

https://ecs.aliyuncs.com/?Action=StartInstance
&InstanceId=i-instance1
&<公共請求參數>

返回示例

XML格式

<StartInstanceResponse>
    <RequestId>C0003E8B-B930-4F59-ADC0-0E209A9012A8</RequestId>
</StartInstanceResponse>

JSON格式

{
    "RequestId": "C0003E8B-B930-4F59-ADC0-0E209A9012A8"
}

最後更新:2016-11-23 16:03:50

  上一篇:go 創建實例__實例相關接口_API 參考_雲服務器 ECS-阿裏雲
  下一篇:go 停止實例__實例相關接口_API 參考_雲服務器 ECS-阿裏雲