Tüm Ürünler
Search
Belge Merkezi

:CreateEnvironment

Son Güncelleme:Oct 10, 2026

Bir ortam örneği oluşturur.

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

arms:CreateEnvironment

create

*Ortam.

acs:arms:{#regionId}:{#accountId}:environment/*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

Bölge kimliği.

cn-hangzhou

AliyunLang

string

No

Dil ortamı. Varsayılan değer: zh.

Valid values:

  • en :

    İngilizce.

  • zh :

    Çince.

zh

EnvironmentName

string

Yes

Ortam adı.

env1

EnvironmentType

string

Yes

Ortam türü. Geçerli değerler:

  • CS: Konteyner Hizmeti.

  • ECS: ECS.

  • Cloud: Bulut hizmeti.

CS

EnvironmentSubType

string

Yes

Ortamın alt türü.

  • CS ortamları için ACK ve One alt türleri desteklenir.

  • ECS ortamları için ECS alt türü desteklenir.

  • Cloud ortamları için Cloud alt türü desteklenir.

Valid values:

  • ECS :

    ECS.

  • Cloud :

    Cloud.

  • One :

    One.

  • ACK :

    ACK.

ECS, ACK

BindResourceId

string

Yes

Ortama bağlı kaynak örneğinin kimliği; konteyner örnek kimliğini veya VPC kimliğini içerir. Cloud ortamları için bu alanın değeri bölge kimliğidir.

c6e9dec475dca4a50a188411d8cbxxx

ManagedType

string

No

Yönetilen tür. Geçerli değerler:

  • none: Yönetilmez. ACK kümeleri için varsayılan değerdir.

  • agent: Yönetilen aracı (ksm dahil). ASK, ACS ve AckOne kümeleri için varsayılan değerdir.

  • agent-exporter: Yönetilen aracı ve dışa aktarıcı. Bulut hizmetleri için varsayılan değerdir.

none

FeePackage

string

No

Faturalandırma planı. EnvironmentType CS olarak ayarlanmışsa bu parametreyi CS_Basic (varsayılan) veya CS_Pro olarak ayarlayabilirsiniz. EnvironmentType başka değerlere ayarlanmışsa bu parametreyi boş bırakın.

CS_Basic

PrometheusInstanceId

string

No

Ortama bağlı Prometheus örneğinin kimliği. Bu parametre boş bırakılabilir. Sağlanmazsa depolama örneğini başlatmak için InitEnvironment işlemini çağırın.

c6e9dec475dca4a50a188411d8cbxxx

GrafanaWorkspaceId

string

No

Ortama bağlı Grafana çalışma alanının kimliği. Bu parametre boş bırakılırsa varsayılan paylaşımlı Grafana çalışma alanı kullanılır.

grafana-rnglkcdrntlhk0****

ResourceGroupId

string

No

Kaynak grubu kimliği.

rg-acfmxyexli2****

Tags

array<object>

No

Yönetim amacıyla örneğe ekleyebileceğiniz etiketler.

object

No

Etiket.

Key

string

No

Etiket anahtarı.

TestKey

Value

string

No

Etiket değeri.

TestValue

InitEnvironment

boolean

No

Ortamın başlatılıp başlatılmayacağını belirtir.

false

Response elements

Element

Type

Description

Example

object

Yanıt şeması.

Code

integer

Durum kodu. 200 değeri başarılı olduğunu gösterir.

200

Data

string

Oluşturulan ortamın kimliği.

env-xxxxx

Message

string

Yanıtta döndürülen mesaj.

message

RequestId

string

İstek kimliği.

16AF921B-8187-489F-9913-43C808B4****

Examples

Success response

JSON format

{
  "Code": 200,
  "Data": "env-xxxxx",
  "Message": "message",
  "RequestId": "16AF921B-8187-489F-9913-43C808B4****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.