Tüm Ürünler
Search
Belge Merkezi

:RedeployInstance

Son Güncelleme:Oct 02, 2026

Bir ECS örneği sistem olayı bildirimi aldığında, örneği yeniden dağıtmak için RedeployInstance işlemini çağırır.

Operation description

İşlem açıklaması

RedeployInstance, bir örneği yeniden başlatan ve taşıyan eşzamansız bir çağrıdır. Yeniden dağıtım başarılı olduktan sonra örnek Çalışıyor durumuna geçer. Yeniden dağıtım başarısız olursa, örnek orijinal fiziksel sunucuya döndürülür ve yeniden dağıtımdan önceki durumuna geri döner.

Bu işlemi çağırdığınızda aşağıdaki hususlara dikkat edin:

  • Hedef örnek Çalışıyor veya Durduruldu durumunda olmalıdır. İşlem çağrıldıktan sonra örnek durumu değişir:
    • Çalışıyor (Running) durumundaki bir örnek Durduruluyor (Stopping) durumuna geçer.

    • Durduruldu (Stopped) durumundaki bir örnek Başlatılıyor (Starting) durumuna geçer.

  • Adanmış ana bilgisayarlardaki örnekler yeniden dağıtılamaz.

  • Bir örneğin OperationLocks değeri "LockReason": "security" olarak işaretlenmişse, örnek yeniden dağıtılamaz.

  • CreateSimulatedSystemEvent çağrılarak oluşturulan simüle edilmiş olaylara yanıt verilemez.

  • Bir sistem olayında yerel diski yalıtma akışı sırasında, hasarlı yerel disk yalıtılmış ancak SystemMaintenance.RebootAndReInitErrorDisk olayı yayınlanmamışsa RedeployInstance işlemini de çağırabilirsiniz. Daha fazla bilgi için Yerel disklere sahip örnekler için sistem olaylarına genel bakış konusuna bakın.

Aşağıdaki tabloda RedeployInstance işleminin yanıt verebileceği sistem olayı türleri ve olay durumları açıklanmaktadır.

Olay adı ve parametresiOlay durumu
Sistem bakımı nedeniyle örneğin yeniden başlatılması (SystemMaintenance.Reboot)Inquiring, Scheduled
Sistem bakımı nedeniyle örneğin yeniden dağıtılması (SystemMaintenance.Redeploy)Inquiring, Scheduled
Sistem bakımı nedeniyle örneğin yeniden başlatılması ve hasarlı diskin yalıtılması (SystemMaintenance.RebootAndIsolateErrorDisk)Inquiring
Sistem bakımı nedeniyle örneğin yeniden başlatılması ve hasarlı diskin yeniden ilklendirilmesi (SystemMaintenance.RebootAndReInitErrorDisk)Inquiring
Sistem hatası nedeniyle örneğin yeniden dağıtılması (SystemFailure.Redeploy)Inquiring
Yalnızca yerel disklere sahip ECS örnekleri için: sistem hatası nedeniyle örneğin yeniden başlatılması (SystemFailure.Reboot)Executing
Sistem bakımı nedeniyle hasarlı diskin yalıtılması (SystemMaintenance.IsolateErrorDisk)Inquiring
Sistem bakımı nedeniyle hasarlı diskin yeniden ilklendirilmesi (SystemMaintenance.ReInitErrorDisk)Inquiring
Not

Yerel disklere sahip bir örneğin yeniden dağıtılması yerel diskleri yeniden başlatır ve depolama aygıtlarındaki tüm veriler silinir.

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:RedeployInstance

update

*Instance

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

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

Çalışıyor veya Durduruldu durumundaki örneğin kimliği.

i-bp1azkttqpldxgted****

ForceStop

boolean

No

Çalışıyor durumundaki örneğin zorla durdurulup durdurulmayacağını belirtir.

Varsayılan değer: false.

Not

Zorla durdurma işlemi, sunucunun doğrudan kapatılmasına eşdeğerdir. Örnek işletim sisteminde depolama aygıtlarına yazılmamış veriler kaybolur. Zaten durdurulmuş örnekleri yeniden dağıtmanızı öneririz.

false

Response elements

Element

Type

Description

Example

object

TaskId

string

Yeniden dağıtım görevinin kimliği.

Görev sonucunu sorgulamak için DescribeTasks işlemini çağırabilirsiniz.

t-bp10e8orkp8x****

RequestId

string

İstek kimliği.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

Examples

Success response

JSON format

{
  "TaskId": "t-bp10e8orkp8x****",
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

HTTP status code

Error code

Error message

Description

500 InternalError The request processing has failed due to some unknown error.
403 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. The instance is locked for security reasons. Contact security technical support.
403 DiskError IncorrectDiskStatus.
403 InstanceExpiredOrInArrears The specified operation is denied as your prepay instance is expired (prepay mode) or in arrears (afterpay mode).
403 InvalidOperation.RedeployInstance %s The operation is invalid.
404 InvalidInstanceId.NotFound The InstanceId provided does not exist in our records.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.