啟動執行個體
描述
啟動一個指定的執行個體。
介面調用成功後執行個體進入 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格式
C0003E8B-B930-4F59-ADC0-0E209A9012A8
JSON格式
{
"RequestId": "C0003E8B-B930-4F59-ADC0-0E209A9012A8"
}