根据标签和资源组查询Prometheus实例。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 地域 ID。 | cn-hangzhou |
ResourceGroupId | string | 否 | 资源组 ID。 | rg-acfmxyexli2**** |
Tag | object [] | 否 | 标签列表。 | |
Key | string | 否 | 标签键。 | fpx-tag |
Value | string | 否 | 标签值。 | fvt-tag-value |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "4789C3E9-A85A-524B-B97B-9D2B14BA06BC",
"Data": {
"PrometheusInstances": [
{
"ClusterId": "c9d5dda1aeca64220853ace304baeb03d",
"RegionId": "cn-shanghai",
"UserId": "1672753017899***",
"ClusterName": "prom1",
"ClusterType": "ecs",
"VpcId": "vpc-8vbtp1fsm8mir18l8rl0u",
"VSwitchId": "vsw-f8z73vcja1tqnw90aav5a",
"SecurityGroupId": "sg-f8zd1toc10wmbi1v5rom",
"SubClustersJson": "[\n {\n \"headers\": {},\n \"regionId\": \"cn-hangzhou\",\n \"sourceType\": \"AlibabaPrometheus\",\n \"extras\": {},\n \"clusterId\": \"c39a1048921e04fceb039db2fb****\",\n \"sourceName\": \"arms-luyao-test\",\n \"dataSource\": \"\",\n \"userId\": \"167275301789****\"\n },\n {\n \"headers\": {},\n \"regionId\": \"cn-beijing\",\n \"sourceType\": \"AlibabaPrometheus\",\n \"extras\": {},\n \"clusterId\": \"c6b6485496d5b400abde22cb47b5****\",\n \"sourceName\": \"agent-321-测试\",\n \"dataSource\": \"\",\n \"userId\": \"167275301789****\"\n },\n {\n \"headers\": {},\n \"regionId\": \"cn-zhangjiakou\",\n \"sourceType\": \"AlibabaPrometheus\",\n \"extras\": {},\n \"clusterId\": \"c261a4f3200c446659133f1ade78****\",\n \"sourceName\": \"zaifeng-cardinality-01\",\n \"dataSource\": \"\",\n \"userId\": \"167275301789****\"\n }\n]",
"RemoteReadIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read",
"RemoteReadInterUrl": "http://cn-beijing.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read",
"RemoteWriteIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v3/write",
"RemoteWriteInterUrl": "https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v3/write",
"PushGatewayIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v2",
"PushGatewayInterUrl": "https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v2",
"HttpApiIntraUrl": "http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx\n",
"HttpApiInterUrl": "https://cn-beijing.arms.aliyuncs.com:9443/api/v1/prometheus/xxx",
"AuthToken": "GciOiJIUzI1NiJ9***",
"PaymentType": "POSTPAY",
"GrafanaInstanceId": "grafana-rnggfvhlcdl6m71l**",
"ResourceGroupId": "rg-acfmz7nocpeidcy",
"ResourceType": "PROMETHEUS",
"Tags": [
{
"TagKey": "ac-cus-tag-3",
"TagValue": "asg-2vc8qq7x89o11rus9uvu"
}
]
}
]
},
"Code": "200",
"Message": "message"
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||
---|---|---|---|---|---|---|
2023-12-13 | OpenAPI 返回结构发生变更 | 看变更集 | ||||
| ||||||
2023-06-21 | OpenAPI 入参发生变更 | 看变更集 | ||||
| ||||||
2023-05-17 | OpenAPI 入参发生变更 | 看变更集 | ||||
| ||||||
2023-03-30 | OpenAPI 返回结构发生变更 | 看变更集 | ||||
|