Creates an environment instance.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. | cn-hangzhou |
AliyunLang | string | No | The language. Default value: zh. Valid values:
| zh |
EnvironmentName | string | Yes | The name of the environment. | env1 |
EnvironmentType | string | Yes | The type of the environment. Valid values:
| CS |
EnvironmentSubType | string | Yes | The subtype of the environment. Valid values:
Enumeration Value:
| ECS, ACK, etc. |
BindResourceId | string | Yes | The ID of the resource bound to the environment, such as the container ID or VPC ID. For a Cloud environment, specify the region ID. | c6e9dec475dca4a50a188411d8cbxxx |
ManagedType | string | No | Specifies whether agents or exporters are managed. Valid values:
| none |
FeePackage | string | No | The payable resource plan. Valid values:
| CS_Basic |
PrometheusInstanceId | string | No | The ID of the Prometheus instance. If no Prometheus instance is created, call the InitEnvironment operation. | c6e9dec475dca4a50a188411d8cbxxx |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmxyexli2**** |
Tags | array<object> | No | The tags of the instance. You can specify this parameter to manage tags for the instance. | |
object | No | The list of tags. | ||
Key | string | No | The tag key. | TestKey |
Value | string | No | The tag value. | TestValue |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "16AF921B-8187-489F-9913-43C808B4****",
"Code": 200,
"Data": "env-xxxxx",
"Message": "message"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-06-17 | The request parameters of the API has changed | View Change Details |
2024-05-28 | The request parameters of the API has changed | View Change Details |
2024-05-08 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2024-03-19 | The request parameters of the API has changed | View Change Details |
2024-02-23 | The request parameters of the API has changed | View Change Details |
2024-01-09 | The request parameters of the API has changed | View Change Details |
2023-11-03 | The internal configuration of the API is changed, but the call is not affected | View Change Details |