获取指定Prometheus实例信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 地域 ID。 | cn-hangzhou |
ClusterId | string | 是 | Prometheus 实例 ID。 | c77f6f2397ea74672872acf5e31374a27 |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "52C422FD-6B43-524D-B8A1-A4693294318C",
"Message": "message",
"Code": 200,
"Data": {
"ClusterId": "c589a1b8db05c4561aefbb898ca8fb1cf",
"RegionId": "cn-beijing",
"UserId": "167275301789****",
"ClusterName": "prom1",
"ClusterType": "remote-write",
"VpcId": "vpc-8vb02uk57qbcktqcvqqqj",
"VSwitchId": "vsw-f8z73vcja1tqnw90aav5a",
"SecurityGroupId": "sg-8vbdgmf4nraiqa9bx0jo",
"SubClustersJson": "[{\"headers\":{},\"regionId\":\"cn-hangzhou\",\"sourceType\":\"AlibabaPrometheus\",\"extras\":{},\"clusterId\":\"c39a1048921e04fceb039db2fbb73***\",\"sourceName\":\"arms-luyao-test\",\"dataSource\":\"\",\"userId\":\"167275301789***\"},{\"headers\":{},\"regionId\":\"cn-beijing\",\"sourceType\":\"AlibabaPrometheus\",\"extras\":{},\"clusterId\":\"c6b6485496d5b400abde22cb47b5****\",\"sourceName\":\"agent-321-测试\",\"dataSource\":\"\",\"userId\":\"1672753017899***\"},{\"headers\":{},\"regionId\":\"cn-zhangjiakou\",\"sourceType\":\"AlibabaPrometheus\",\"extras\":{},\"clusterId\":\"c261a4f3200c446659133f1ade789b15e\",\"sourceName\":\"zaifeng-cardinality-01\",\"dataSource\":\"\",\"userId\":\"167275301789***\"}]",
"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",
"HttpApiInterUrl": "https://cn-beijing.arms.aliyuncs.com:9443/api/v1/prometheus/xxx",
"AuthToken": "GciOiJIUzI1NiJ9***",
"AccessType": "readWrite",
"PaymentType": "PREPAY",
"StorageDuration": 90,
"ArchiveDuration": 60,
"GrafanaInstanceId": "grafana-rnggfvhlcdl6m71***",
"ResourceGroupId": "rg-aek2vezare****",
"ResourceType": "PROMETHEUS",
"EnableAuthToken": "true",
"SupportAuthTypes": [
"AuthFree"
],
"EnableAuthFreeRead": true,
"AuthFreeReadPolicy": "",
"EnableAuthFreeWrite": true,
"AuthFreeWritePolicy": "",
"Product": "arms",
"DbInstanceStatus": "RUNNING",
"Version": "",
"PaymentTypeUpdateTime": "",
"ExtraInfo": {
"key": ""
},
"Tags": [
{
"TagKey": "tag1",
"TagValue": "tagValue1"
}
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-12-05 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-09-06 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-09-02 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-08-15 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-08-02 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-05-28 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-05-27 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-04-12 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-12-06 | OpenAPI 返回结构发生变更 | 查看变更详情 |