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:
|
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:
|
ECS, ACK |
| BindResourceId |
string |
Yes |
The ID of the resource instance bound to the environment, such as a container instance ID or a VPC ID. For Cloud environments, set this parameter to the region ID. |
c6e9dec475dca4a50a188411d8cbxxx |
| ManagedType |
string |
No |
The managed type. Valid values:
|
none |
| FeePackage |
string |
No |
The billing plan.
|
CS_Basic |
| PrometheusInstanceId |
string |
No |
The ID of the Prometheus instance bound to the environment. This parameter can be left empty. If it is not provided, call the InitEnvironment operation to initialize the storage instance. |
c6e9dec475dca4a50a188411d8cbxxx |
| GrafanaWorkspaceId |
string |
No |
The ID of the Grafana workspace bound to 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 that you want to add to the instance for management. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The key of the tag. |
TestKey |
| Value |
string |
No |
The value of the tag. |
TestValue |
| InitEnvironment |
boolean |
No |
Specifies whether to initialize the environment. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Code |
integer |
The HTTP status code. A status code of 200 indicates success. |
200 |
| Data |
string |
The ID of the created environment. |
env-xxxxx |
| Message |
string |
The message returned in the response. |
message |
| RequestId |
string |
Id of the request |
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.