阿里云啟動實例接口有哪些
來源:技術員聯(lián)盟┆發(fā)布時間:2017-12-09 12:31┆點擊:
啟動一個指定的實例。
接口調(diào)用成功后實例進入 Starting 狀態(tài)。
實例狀態(tài)必須為 Stopped,才可以調(diào)用該接口。
被安全控制在實例的 OperationLocks 中標記了 "LockReason" : "security" 的鎖定狀態(tài)時,不能啟動實例。
請求參數(shù)
名稱
類型
是否必須
描述
Action
String
是
系統(tǒng)規(guī)定參數(shù),取值:StartInstance
InstanceId
String
是
指定啟動的實例 ID
返回參數(shù)
全是公共返回參數(shù),詳見公共返回參數(shù)
錯誤碼
錯誤代碼
描述
Http 狀態(tài)碼
語義
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
該資源目前的狀態(tài)不支持此操作
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
內(nèi)部錯誤
InstanceNotReady
The specified instance is not ready for use
403
指定的 Instance 還沒有創(chuàng)建完
DiskError
IncorrectDiskStatus
403
不正常的磁盤狀態(tài)
示例
請求示例
https://ecs.aliyuncs.com/?Action=StartInstance
&InstanceId=i-instance1
&<公共請求參數(shù)>
返回示例
XML格式
C0003E8B-B930-4F59-ADC0-0E209A9012A8
JSON格式
{
"RequestId": "C0003E8B-B930-4F59-ADC0-0E209A9012A8"