All Products
Search
Document Center

Managed Service for Prometheus:DescribeEnvironment

Last Updated:Aug 28, 2026

Queries the details of an environment.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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: Container Service for Kubernetes (ACK)

  • ECS: Elastic Compute Service

  • Cloud: cloud service

CS

EnvironmentName

string

The environment name.

env1

EnvironmentSubType

string

The environment subtype. Valid values:

  • CS: ACK

  • ECS: Elastic Compute Service

  • Cloud: cloud service

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:

  • none: unmanaged. Default for ACK clusters.

  • agent: managed agent (including KSM). Default for ASK, ACS, and AckOne clusters.

  • agent-exporter: managed agent and exporters. Default for cloud service environments.

Valid values:

  • agent :

    managed agent

  • agent-exporter :

    managed agent and exporter

  • none :

    unmanaged

none

FeePackage

string

The payable resource plan. Valid values:

  • If the EnvironmentType parameter is set to CS, set the value to CS_Basic or CS_Pro.

  • Otherwise, leave the parameter empty.

Valid values:

  • CS_Pro :
  • CS_Basic :

CS_Basic

DbInstanceStatus

string

The status of the database that is bound to the Prometheus instance.

Valid values:

  • UNINSTALLING

  • INSTALLING

  • UNINSTALLED

  • RUNNING

  • MODIFYING

Valid values:

  • UNINSTALLING :

    UNINSTALLING

  • INSTALLING :

    INSTALLING

  • UNINSTALLED :

    UNINSTALLED

  • RUNNING :

    RUNNING

  • MODIFYING :

    MODIFYING

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.