Queries the details of an environment.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| EnvironmentId |
string |
Yes |
The ID of the environment instance. |
env-xxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
C21AB7CF-B7AF-410F-BD61-82D1567F**** |
| Code |
integer |
The HTTP status code. 200 indicates success. Other codes indicate failure. |
200 |
| Data |
object |
The response data. |
|
| EnvironmentId |
string |
The ID of the environment instance. |
env-xxxxx |
| EnvironmentType |
string |
The type of the environment. Valid values:
|
CS |
| EnvironmentName |
string |
The environment name. |
env1 |
| EnvironmentSubType |
string |
The environment subtype. Valid values:
|
ACK |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| UserId |
string |
The user ID. |
13002222xxxx |
| BindResourceId |
string |
The ID of the resource associated with the environment, such as the ACK cluster ID or VPC ID. |
vpc-xxxxx |
| BindResourceType |
string |
The resource type. |
ECS |
| BindResourceStatus |
string |
The status of the resource. |
running |
| BindResourceProfile |
string |
The profile of the resource. |
Default |
| BindVpcCidr |
string |
The VPC CIDR block. |
192.168.0.0/16 |
| PrometheusInstanceId |
string |
The ID of the Prometheus instance. |
xxxxyyyyyzzzzz |
| PrometheusInstanceName |
string |
The name of the Prometheus instance. |
name1 |
| GrafanaWorkspaceId |
string |
The ID of the Grafana workspace. |
grafana-cn-i7m2qn9xa01 |
| GrafanaFolderUid |
string |
The UID of the Grafana folder. |
xyz |
| GrafanaDatasourceUid |
string |
The unique ID of the Grafana data source. |
zuvw |
| VpcId |
string |
The VPC ID. |
vpc-8vb02uk57qbcktqcvqqqj |
| GrafanaFolderUrl |
string |
The URL of the Grafana folder. |
https://gnew.console.alibabacloud.com/dashboards/f/xxx/yyyy |
| BindResourceStoreDuration |
string |
The retention period of the resource. Unit: days. |
15 |
| GrafaDataSourceName |
string |
The name of the Grafana data source. |
datasource1 |
| GrafanaFolderTitle |
string |
The title of the Grafana folder. |
folder1 |
| ManagedType |
string |
The management type. Valid values:
Valid values:
|
none |
| FeePackage |
string |
The payable resource plan. Valid values:
Valid values:
|
CS_Basic |
| DbInstanceStatus |
string |
The status of the database that is bound to the Prometheus instance. Valid values:
Valid values:
|
RUNNING |
| SecurityGroupId |
string |
The ID of the security group associated with the environment. |
sg-8vbdgmf4nraiqa9bx0jo |
| VswitchId |
string |
The ID of the vSwitch associated with the environment. |
vsw-2ze7yr3f1x8snryaioo7u |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-aek2vezare**** |
| Tags |
array<object> |
The tags. |
|
|
object |
The tag. |
||
| Key |
string |
The tag key. |
user1 |
| Value |
string |
The tag value. |
p_运维 |
| Message |
string |
The returned message. |
message |
Examples
Success response
JSON format
{
"RequestId": "C21AB7CF-B7AF-410F-BD61-82D1567F****",
"Code": 200,
"Data": {
"EnvironmentId": "env-xxxxx",
"EnvironmentType": "CS",
"EnvironmentName": "env1",
"EnvironmentSubType": "ACK",
"RegionId": "cn-hangzhou",
"UserId": "13002222xxxx",
"BindResourceId": "vpc-xxxxx",
"BindResourceType": "ECS",
"BindResourceStatus": "running",
"BindResourceProfile": "Default",
"BindVpcCidr": "192.168.0.0/16",
"PrometheusInstanceId": "xxxxyyyyyzzzzz",
"PrometheusInstanceName": "name1",
"GrafanaWorkspaceId": "grafana-cn-i7m2qn9xa01",
"GrafanaFolderUid": "xyz",
"GrafanaDatasourceUid": "zuvw",
"VpcId": "vpc-8vb02uk57qbcktqcvqqqj",
"GrafanaFolderUrl": "https://gnew.console.alibabacloud.com/dashboards/f/xxx/yyyy",
"BindResourceStoreDuration": "15",
"GrafaDataSourceName": "datasource1",
"GrafanaFolderTitle": "folder1",
"ManagedType": "none",
"FeePackage": "CS_Basic",
"DbInstanceStatus": "RUNNING",
"SecurityGroupId": "sg-8vbdgmf4nraiqa9bx0jo",
"VswitchId": "vsw-2ze7yr3f1x8snryaioo7u",
"ResourceGroupId": "rg-aek2vezare****",
"Tags": [
{
"Key": "user1",
"Value": "p_运维"
}
]
},
"Message": "message"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.