查询指定Prometheus实例详情信息。
接口说明
获取 Prometheus 实例详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cms:GetPrometheusInstance |
get |
*PrometheusInstance
|
无 | 无 |
请求语法
GET /prometheus-instances/{prometheusInstanceId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| prometheusInstanceId |
string |
是 |
实例 id。 |
rw-abc123 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| resourceGroupId |
string |
否 |
资源组 ID。 |
rg-aek2bhocin5e2na |
| aliyunLang |
string |
否 |
语言环境, 默认为中文 zh | en。 |
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| prometheusInstance |
object |
Prometheus 实例详情。 |
|
| accessType |
string |
权限类型: readWrite、readOnly、httpReadOnly |
readOnly |
| archiveDuration |
integer |
存储到期后,自动归档保存的天数,0 表示不归档保存,3650 表示永久保存。 |
90 |
| authFreeReadPolicy |
string |
免密读策略(支持 IP 段和 VpcId)。 |
{ "SourceIp": [ "192.168.1.0/24", "172.168.2.22" ], "SourceVpc": [ "vpc-xx1", "vpc-xx2" ] } |
| authFreeWritePolicy |
string |
免密写策略(支持 IP 段和 VpcId)。 |
{ "SourceIp": [ "192.168.1.0/24", "172.168.2.22" ], "SourceVpc": [ "vpc-xx1", "vpc-xx2" ] } |
| authToken |
string |
authToken 串。 |
eJwixxxxx |
| createTime |
string |
实例创建时间,使用 UTC+0 时间,格式为 yyyy-MM-ddTHH:mmZ。 |
2025-08-10T02:07:53Z |
| enableAuthFreeRead |
boolean |
是否开启读免密。 |
true |
| enableAuthFreeWrite |
boolean |
是否开启写免密。 |
true |
| enableAuthToken |
boolean |
是否开启鉴权 Token。 |
true |
| extraInfo |
object |
扩展信息。 |
|
|
string |
其他扩展信息。 |
value |
|
| httpApiInterUrl |
string |
HTTP 公网地址。 |
http://workspace-default-cms-xxxxxxx |
| httpApiIntraUrl |
string |
HTTP 内网地址。 |
http://workspace-default-cms-xxxxxxx |
| instanceType |
string |
Prometheus 实例类型。 |
remote-write |
| paymentType |
string |
计费方式: POSTPAY:按指标上报量后付费。 POSTPAY_GB:按指标写入量后付费。 |
POSTPAY |
| product |
string |
prom 实例归属的产品(arms 或 cms) |
cms |
| prometheusInstanceId |
string |
实例 ID。 |
rw-524ada714221af267c73122af2e1 |
| prometheusInstanceName |
string |
实例名称。 |
test-prom-name |
| pushGatewayInterUrl |
string |
PushGateway 公网地址。 |
http://workspace-default-cms-xxxxxxx |
| pushGatewayIntraUrl |
string |
PushGateway 内网地址。 |
http://workspace-default-cms-xxxxxxx |
| regionId |
string |
地域 ID。 |
cn-heyuan |
| remoteReadInterUrl |
string |
公网读地址。 |
http://workspace-default-cms-xxxxxxx |
| remoteReadIntraUrl |
string |
内网读地址。 |
https://workspace-default-cms-1xxxxxxxxxx |
| remoteWriteInterUrl |
string |
公网写地址。 |
https://workspace-default-cms-xxxxxxxxxx |
| remoteWriteIntraUrl |
string |
内网写地址。 |
https://workspace-default-cms-xxxxxxxxxx |
| resourceGroupId |
string |
资源组 ID。 |
rg-acfm3gn5i6bigbi |
| resourceType |
string |
固定值:PrometheusInstance。 |
Prometheus |
| status |
string |
实例状态。 |
Running |
| storageDuration |
integer |
存储时长(天)。 |
90 |
| supportAuthTypes |
array |
支持的认证鉴权类型。 |
|
|
string |
鉴权类型。 |
BasicAuth |
|
| tags |
array<object> |
标签列表。 |
|
|
object |
标签。 |
||
| key |
string |
标签 Key。 |
openStorage |
| value |
string |
匹配值。 |
130303196111114281 |
| userId |
string |
用户 ID。 |
170731234567 |
| version |
string |
版本。 |
V1 |
| workspace |
string |
Prometheus 实例归属的工作空间。 |
ws1 |
| folderUrl |
string |
可视化大盘目录 URL。 |
https://gnew.console.aliyun.com/dashboards/f/c49a80d2a551d4a20a8c4b996b0be4e52/xxxxxxx |
| grafanaInstanceId |
string |
绑定的托管 grafana 实例 ID。 |
SHARED |
| grafanaInstanceName |
string |
绑定的托管 grafana 实例名称。 |
共享版 |
| paymentTypeUpdateTime |
string |
实例计费方式修改时间。 |
2025-08-10T02:07:53Z |
| requestId |
string |
请求唯一标识。 |
264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC |
示例
正常返回示例
JSON格式
{
"prometheusInstance": {
"accessType": "readOnly",
"archiveDuration": 90,
"authFreeReadPolicy": "{\n \"SourceIp\": [\n \"192.168.1.0/24\",\n \"172.168.2.22\"\n ],\n \"SourceVpc\": [\n \"vpc-xx1\",\n \"vpc-xx2\"\n ]\n}",
"authFreeWritePolicy": "{\n \"SourceIp\": [\n \"192.168.1.0/24\",\n \"172.168.2.22\"\n ],\n \"SourceVpc\": [\n \"vpc-xx1\",\n \"vpc-xx2\"\n ]\n}",
"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": "130303196111114281"
}
],
"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"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。