獲取指定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 返回結構發生變更 | 查看變更詳情 |