Durdurulmuş durumda olan Elastic Compute Service (ECS) örneklerini başlatır.
Operation description
Bu işlem asenkron bir işlemdir. ECS örneklerini başlatmak için bu işlemi çağırdığınızda, işlem ECS örneklerinin durumunu Starting olarak ayarlar ve başlatma sürecini başlatır. Örneklerin durumunu sorgulamak için DescribeInstanceStatus işlemini çağırabilirsiniz. ECS örneklerinin durumu Running olarak değiştiğinde örnekler başlatılmış olur.
Önemli noktalar
-
Güvenlik nedenleriyle kilitlenen ECS örneklerini başlatmak için bu işlemi çağıramazsınız. Daha fazla bilgi için Bir örnek güvenlik nedenleriyle kilitlendiğinde API davranışı konusuna bakın.
-
Başlatmak istediğiniz ECS örnekleri Stopped (
Stopped) durumunda olmalıdır. -
Ekonomik modda durdurulan ECS örnekleri, yetersiz kaynaklar nedeniyle başlatılamayabilir.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:StartInstances |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DryRun |
boolean |
No |
Deneme çalıştırması yapılıp yapılmayacağını belirtir. Geçerli değerler:
Not
Varsayılan değer: false. |
false |
| RegionId |
string |
Yes |
ECS örneğinin bölge kimliği. En güncel bölge listesini sorgulamak için DescribeRegions işlemini çağırabilirsiniz. |
cn-hangzhou |
| BatchOptimization |
string |
No |
Toplu işlem modu. Geçerli değerler:
Varsayılan değer: AllTogether. |
AllTogether |
| InstanceId |
array |
Yes |
ECS örneklerinin kimlikleri. N için geçerli değerler: 1 ile 100 arası. |
i-bp67acfmxazb4p**** |
|
string |
No |
N. ECS örneğinin kimliği. |
i-bp67acfmxazb4p**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
İsteğin kimliği. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| InstanceResponses |
object |
||
| InstanceResponse |
array<object> |
İşlem çağrılmadan önceki ve çağrıldıktan sonraki her bir örneğin durumu ve işlem sonuçları gibi ECS örnekleri hakkındaki bilgiler. |
|
|
object |
|||
| Code |
string |
ECS örneği üzerindeki işlem için döndürülen hata kodu. 200 değeri işlemin başarılı olduğunu gösterir. Daha fazla bilgi için bu konudaki "Hata kodları" bölümüne bakın. |
200 |
| Message |
string |
ECS örneği üzerindeki işlem için döndürülen hata mesajı. success değeri işlemin başarılı olduğunu gösterir. Daha fazla bilgi için bu konudaki "Hata kodları" bölümüne bakın. |
success |
| InstanceId |
string |
ECS örneğinin kimliği. |
i-bp67acfmxazb4p**** |
| CurrentStatus |
string |
İşlem çağrıldıktan sonraki ECS örneğinin durumu. |
Starting |
| PreviousStatus |
string |
İşlem çağrılmadan önceki ECS örneğinin durumu. |
Stopped |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"InstanceResponses": {
"InstanceResponse": [
{
"Code": "200",
"Message": "success",
"InstanceId": "i-bp67acfmxazb4p****",
"CurrentStatus": "Starting",
"PreviousStatus": "Stopped"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.KMSKeyId.CMKNotEnabled | The CMK needs to be added ECS tag | |
| 400 | InvalidParameter.KMSKeyId.KMSUnauthorized | ECS service account have no right to access your KMS. | The ECS service does not have permission to access your KMS. |
| 400 | DRYRUN.SUCCESS | This request is a dryrun request with successful result. | The request is checked and determined as valid. |
| 400 | Invalid.PrivatePoolOptions.NoStock | The PrivatePool has been used up. | The capacity of the specified private pool (elastic assurance, capacity reservation) has been used up. |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | InvalidInstanceId.NotFound | InstanceId should not be null. | |
| 403 | InvalidParameter.TooManyInstanceIds | Instance ids cannot be more than 100. | InstanceIds cannot be more than 100. |
| 403 | Abs.InvalidInstanceIds.MalFormed | The specified instanceIds is not valid. | The specified instance ID is invalid. |
| 403 | InstanceExpired | %s | The instance is out of date and the operation cannot be performed. |
| 403 | InstanceLockedForSecurity | %s | |
| 403 | InstanceExpiredOrInArrears | %s | |
| 403 | IncorrectInstanceStatus | %s | The instance is in a state that does not support the current operation. |
| 403 | InvalidInstance.NotFoundSystemDisk | %s | The system disk of the instance is missing. |
| 403 | OperationDenied.SpotPriceLowerThanPublicPrice | The spot instance price is lower than public price. | Your user-defined maximum hourly price of a spot instance is lower than the current market price. |
| 403 | InsufficientBalance | Your account does not have enough balance. | |
| 403 | InstanceNotReady | The specified instance is not ready for use. | |
| 403 | OperationDenied.HostRepairing | %s | |
| 403 | OperationDenied.NoStock | The requested resource is sold out in the specified zone, try other types of resources or other regions and zones. | The requested resources are sold out in the specified zone. Try another instance type or zone. |
| 404 | InvalidInstanceId.NotFound | %s | |
| 404 | InvalidInstanceIds.NotFound | The specified InstanceIds does not exist. | The specified InstanceId parameter does not exist. You can call the DescribeInstances operation to query the state of the instance. |
| 503 | LimitedOperation.ServiceUnavailable | The service is currently unavailable. Please try again later. | The service is currently unavailable. Please try again later. |
| 409 | InvalidOperation.Conflict | Request was denied due to conflict with a previous request, please try again later. | A conflicting task exists in the port list. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.