Tüm Ürünler
Search
Belge Merkezi

:StartInstances

Son Güncelleme:Oct 02, 2026

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

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

update

*Instance

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

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:

  • true: Yalnızca deneme çalıştırması yapar. Sistem; gerekli parametreler, 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ı yapar ve gerçek isteği gerçekleştirir. İstek deneme çalıştırmasından geçerse işlem gerçekleştirilir.

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:

  • AllTogether: Tüm ECS örneklerini aynı anda başlatır. Tüm ECS örnekleri başlatılırsa bir başarı mesajı döndürülür. Bir ECS örneği başlatılamazsa, belirtilen tüm örnekler başlatılamaz ve bir hata mesajı döndürülür.

  • SuccessFirst: Her ECS örneğini ayrı ayrı başlatır. Yanıt, her ECS örneğinin 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

İ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.