查询指定Prometheus实例详情信息。
接口说明
获取 Prometheus 实例详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用前面加 * 表示。
- 对于不支持资源级授权的操作,用
全部资源表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
| 操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
|---|---|---|---|---|
| cms:GetPrometheusInstance | get | *PrometheusInstance acs:cms:{#regionId}:{#accountId}:prometheusinstance/{#prometheusInstanceId} |
| 无 |
请求语法
GET /prometheus-instances/{prometheusInstanceId} HTTP/1.1
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| prometheusInstanceId | string | 是 | 实例 id。 | rw-abc123 |
| resourceGroupId | string | 否 | 资源组 ID。 | rg-aek2bhocin5e2na |
| aliyunLang | string | 否 | 语言环境, 默认为中文 zh | en | zh |
返回参数
示例
正常返回示例
JSON格式
{
"prometheusInstance": {
"accessType": "readOnly",
"archiveDuration": 90,
"authFreeReadPolicy": {
"SourceIp": [
"192.168.1.0/24",
"172.168.2.22"
],
"SourceVpc": [
"vpc-xx1",
"vpc-xx2"
]
},
"authFreeWritePolicy": {
"SourceIp": [
"192.168.1.0/24",
"172.168.2.22"
],
"SourceVpc": [
"vpc-xx1",
"vpc-xx2"
]
},
"authToken": "eJwixxxxx",
"createTime": "2025-08-10T02:07:53Z",
"enableAuthFreeRead": true,
"enableAuthFreeWrite": true,
"enableAuthToken": true,
"extraInfo": {
"key": "value"
},
"httpApiInterUrl": " http://workspace-default-cms-xxxxxxx",
"httpApiIntraUrl": " http://workspace-default-cms-xxxxxxx",
"instanceType": "remote-write",
"paymentType": "POSTPAY",
"product": "cms",
"prometheusInstanceId": "rw-524ada714221af267c73122af2e1",
"prometheusInstanceName": "test-prom-name",
"pushGatewayInterUrl": " http://workspace-default-cms-xxxxxxx",
"pushGatewayIntraUrl": " http://workspace-default-cms-xxxxxxx\n",
"regionId": "cn-heyuan",
"remoteReadInterUrl": " http://workspace-default-cms-xxxxxxx",
"remoteReadIntraUrl": "https://workspace-default-cms-1xxxxxxxxxx",
"remoteWriteInterUrl": "https://workspace-default-cms-xxxxxxxxxx",
"remoteWriteIntraUrl": "https://workspace-default-cms-xxxxxxxxxx",
"resourceGroupId": "rg-acfm3gn5i6bigbi",
"resourceType": "Prometheus",
"status": "Running",
"storageDuration": 90,
"supportAuthTypes": [
"BasicAuth"
],
"tags": [
{
"key": "openStorage",
"value": 130303196111114290
}
],
"userId": 170731234567,
"version": "V1",
"workspace": "ws1",
"folderUrl": "https://gnew.console.aliyun.com/dashboards/f/c49a80d2a551d4a20a8c4b996b0be4e52/xxxxxxx",
"grafanaInstanceId": "SHARED",
"grafanaInstanceName": "共享版",
"paymentTypeUpdateTime": "2025-08-10T02:07:53Z"
},
"requestId": "264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC"
}错误码
访问错误中心查看更多错误码。
