查询环境详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。 |
cn-hangzhou |
| EnvironmentId |
string |
是 |
环境实例 ID。 |
env-xxxxx |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
C21AB7CF-B7AF-410F-BD61-82D1567F**** |
| Code |
integer |
状态码。200 为成功,其他状态码为异常。 |
200 |
| Data |
object |
返回结构体。 |
|
| EnvironmentId |
string |
环境实例 ID。 |
env-xxxxx |
| EnvironmentType |
string |
环境类型:
|
CS |
| EnvironmentName |
string |
环境名称。 |
env1 |
| EnvironmentSubType |
string |
环境的子类型:
|
ACK |
| RegionId |
string |
地域 id |
cn-hangzhou |
| UserId |
string |
用户 Id。 |
13002222xxxx |
| BindResourceId |
string |
环境绑定的资源实例 ID,包括容器实例 ID 或 VpcId。 |
vpc-xxxxx |
| BindResourceType |
string |
绑定的资源类型。 |
ECS |
| BindResourceStatus |
string |
绑定资源的状态。 |
running |
| BindResourceProfile |
string |
绑定资源的 Profile。 |
Default |
| BindVpcCidr |
string |
绑定 vpc 的网段。 |
192.168.0.0/16 |
| PrometheusInstanceId |
string |
绑定的 prometheus 实例 ID。 |
xxxxyyyyyzzzzz |
| PrometheusInstanceName |
string |
绑定的 prometheus 实例名称。 |
name1 |
| GrafanaWorkspaceId |
string |
grafana 工作区 id |
grafana-cn-i7m2qn9xa01 |
| GrafanaFolderUid |
string |
Grafana 目录唯一 ID。 |
xyz |
| GrafanaDatasourceUid |
string |
Grafana 数据源唯一 ID。 |
zuvw |
| VpcId |
string |
VPC ID。 |
vpc-8vb02uk57qbcktqcvqqqj |
| GrafanaFolderUrl |
string |
Grafana 目录 URL。 |
https://gnew.console.alibabacloud.com/dashboards/f/xxx/yyyy |
| BindResourceStoreDuration |
string |
绑定资源的保存时长(天)。 |
15 |
| GrafaDataSourceName |
string |
Grafana 数据源名称。 |
datasource1 |
| GrafanaFolderTitle |
string |
Grafana 目录名。 |
folder1 |
| ManagedType |
string |
托管类型:
枚举值:
|
none |
| FeePackage |
string |
付费套餐。
枚举值:
|
CS_Basic |
| DbInstanceStatus |
string |
绑定 prometheus 实例的 db 状态。 枚举值:
|
RUNNING |
| SecurityGroupId |
string |
环境绑定的安全组 Id |
sg-8vbdgmf4nraiqa9bx0jo |
| VswitchId |
string |
环境绑定的交换机 Id |
vsw-2ze7yr3f1x8snryaioo7u |
| ResourceGroupId |
string |
资源组 ID。 |
rg-aek2vezare**** |
| Tags |
array<object> |
标签。 |
|
|
object |
标签。 |
||
| Key |
string |
Tag 的键。 |
user1 |
| Value |
string |
Tag 的值 |
p_运维 |
| Message |
string |
返回结果的提示信息。 |
message |
示例
正常返回示例
JSON格式
{
"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"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。