Creates an environment instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
arms:CreateEnvironment |
create |
*Environment
|
None | None |
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:
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:
Valid values:
|
ECS、ACK等。 |
| 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.
|
CS_Basic |
| PrometheusInstanceId |
string |
No |
The ID of the Prometheus instance. If no Prometheus instance is created, call the InitEnvironment operation. |
c6e9dec475dca4a50a188411d8cbxxx |
| GrafanaWorkspaceId |
string |
No |
The ID of the Grafana workspace associated with the environment. If this parameter is left empty, the default shared Grafana workspace is used. |
grafana-rnglkcdrntlhk0**** |
| 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 |
| InitEnvironment |
boolean |
No |
Specifies whether to initialize the environment. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
16AF921B-8187-489F-9913-43C808B4**** |
| Code |
integer |
The HTTP status code. The status code 200 indicates that the request was successful. |
200 |
| Data |
string |
The ID of the created environment. |
env-xxxxx |
| Message |
string |
The returned message. |
message |
Examples
Success response
JSON format
{
"RequestId": "16AF921B-8187-489F-9913-43C808B4****",
"Code": 200,
"Data": "env-xxxxx",
"Message": "message"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.