Tüm Ürünler
Search
Belge Merkezi

:RebootInstances

Son Güncelleme:Oct 02, 2026

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ı

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ecs:RebootInstances

update

*Instance

acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}

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:

  • true: Yalnızca deneme çalıştırması yapılır. Sistem; eksik parametre değerleri, hatalı istek sözdizimi ve örnek durumu gibi olası sorunlara karşı isteği kontrol eder. İstek deneme çalıştırmasından geçemezse bir hata mesajı döndürülür. İstek deneme çalıştırmasından geçerse DRYRUN.SUCCESS döndürülür.

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.

  • false: Deneme çalıştırması yapılır ve istek gönderilir. İstek deneme çalıştırmasından geçerse örnek yeniden başlatı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:

  • true: Örneği zorla yeniden başlatır. Bu işlem, tipik bir güç kapatma işlemine eşdeğerdir. Örnekteki depolama cihazlarına yazılmamış olan önbellek verileri kaybolur.

  • false: Örneği normal şekilde yeniden başlatır.

Varsayılan değer: false.

false

BatchOptimization

string

No

Toplu işlem modu. Geçerli değerler:

  • AllTogether: Bu modda, tüm örnekler yeniden başlatılırsa bir başarı mesajı döndürülür. Bir örnek doğrulamadan geçemezse, tüm örnekler yeniden başlatılamaz ve bir hata mesajı döndürülür.

  • SuccessFirst: Bu modda, her örnek ayrı ayrı yeniden başlatılır. Yanıt, her örneğin işlem sonuçlarını içerir.

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.