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