Elastic Compute Service (ECS) örneklerini yeniden başlatır. Bu işlemi çağırdığınızda, toplu işlem modunu ve örneklerin zorla yeniden başlatılıp başlatılmayacağını belirtmek için parametreleri yapılandırabilirsiniz.
Operation description
Bu işlem asenkron bir işlemdir ve örneğin yeniden başlatılması hemen tamamlanmaz. Başarılı bir çağrıdan sonra, örnek önce Başlatılıyor (Starting) durumuna geçer. Örnek durumunu görüntülemek için DescribeInstanceStatus işlemini çağırabilirsiniz. Döndürülen durum Running olduğunda yeniden başlatma işleminin başarılı olduğu anlamına gelir.
Kullanım Notları
-
Güvenlik kilidi uygulanmış örnekler bu işlem çağrılarak yeniden başlatılamaz. Daha fazla bilgi için lütfen Kaynak güvenlik kilidinin API çağrıları üzerindeki etkisi konusuna bakın.
-
ECS örneğinin durumu çalışıyor (Running) olmalıdır.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:RebootInstances |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DryRun |
boolean |
No |
Yalnızca deneme çalıştırması yapılıp yapılmayacağını ve gerçek isteğin gerçekleştirilmeyeceğini belirtir. Geçerli değerler:
Not
BatchOptimization parametresini SuccessFirst ve DryRun parametresini true olarak ayarlarsanız, isteğin deneme çalıştırmasından geçip geçmediğine bakılmaksızın yalnızca DRYRUN.SUCCESS döndürülür.
Varsayılan değer: false. |
false |
| RegionId |
string |
Yes |
Bölge kimliği. En güncel bölge listesini sorgulamak için DescribeRegions işlemini çağırabilirsiniz. |
cn-hangzhou |
| ForceReboot |
boolean |
No |
Örneğin zorla yeniden başlatılıp başlatılmayacağını belirtir. Geçerli değerler:
Varsayılan değer: false. |
false |
| 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 |
İstek kimliği. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| InstanceResponses |
object |
||
| InstanceResponse |
array<object> |
Her bir örneğin işlem çağrısı yapılmadan önceki ve sonraki durumunu ve işlem sonuçlarını içeren, örneğe özgü yanıtlara ilişkin ayrıntılar. |
|
|
object |
|||
| Code |
string |
Örnek için döndürülen hata kodu. 200 dönüş değeri, işlemin başarılı olduğunu gösterir. Daha fazla bilgi için bu konunun "Hata kodları" bölümüne bakın. |
200 |
| Message |
string |
Örnekteki işlem için döndürülen hata mesajı. Success dönüş değeri, işlemin başarılı olduğunu gösterir. Daha fazla bilgi için bu konunun "Hata kodları" bölümüne bakın. |
success |
| InstanceId |
string |
Örneğin kimliği. |
i-bp1g6zv0ce8oghu7**** |
| CurrentStatus |
string |
Örneğin mevcut durumu. |
Stopping |
| PreviousStatus |
string |
İşlem çağrısı yapılmadan önceki örnek durumu. |
Running |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"InstanceResponses": {
"InstanceResponse": [
{
"Code": "200",
"Message": "success",
"InstanceId": "i-bp1g6zv0ce8oghu7****",
"CurrentStatus": "Stopping",
"PreviousStatus": "Running"
}
]
}
}
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. |
| 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 | 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 | InsufficientBalance | Your account does not have enough balance. | |
| 403 | InstanceNotReady | The specified instance is not ready for use. | |
| 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.