すべてのプロダクト
Search
ドキュメントセンター

Managed Service for Prometheus:タグおよびリソースグループ ID による Prometheus インスタンスの一覧取得

最終更新日:Jun 06, 2026

タグおよびリソースグループによる Prometheus インスタンスのクエリ

今すぐお試しください

この API を OpenAPI Explorer でお試しください。手作業による署名は必要ありません。呼び出しに成功すると、入力したパラメーターに基づき、資格情報が組み込まれた SDK コードが自動的に生成されます。このコードをダウンロードしてローカルで使用できます。

テスト

RAM 認証

この操作の認証情報はありません。問題が発生した場合は、アカウントマネージャーにご連絡ください。

リクエストパラメーター

パラメーター

必須 / 任意

説明

RegionId

文字列

必須

Prometheus インスタンスのリージョン ID。

cn-hangzhou

ResourceGroupId

文字列

任意

リソースグループの ID。

rg-acfmxyexli2****

Tag

配列<オブジェクト>

任意

タグの配列。

オブジェクト

任意

リソースのタグ。

Key

文字列

任意

タグのキー。

fpx-tag

Value

文字列

任意

タグの値。

fvt-tag-value

レスポンスフィールド

フィールド

説明

object

レスポンスのスキーマ

RequestId

string

リクエスト ID

4789C3E9-A85A-524B-B97B-9D2B14BA06BC

Data

object

返される構造体。

PrometheusInstances

array<object>

照会された Prometheus インスタンスの配列。

array<object>

ClusterId

string

Prometheus インスタンスの ID。

c9d5dda1aeca64220853ace304baeb03d

RegionId

string

リージョン ID。

cn-shanghai

UserId

string

ユーザーの ID。

1672753017899***

ClusterName

string

Prometheus インスタンスの名前。

prom1

ClusterType

string

インスタンスタイプ。有効な値:

  • remote-write:リモートライト用の Prometheus インスタンス

  • ecs:ECS 用の Prometheus インスタンス

  • cloud-monitor:中国本土の Alibaba Cloud サービス用の Prometheus インスタンス

  • cloud-product:中国本土以外の Alibaba Cloud サービス用の Prometheus インスタンス

  • global-view:グローバル集約インスタンス

  • aliyun-cs:コンテナサービス用の Prometheus インスタンス

ecs

VpcId

string

VPC の ID。

vpc-8vbtp1fsm8mir18l8rl0u

VSwitchId

string

vSwitch の ID。

vsw-f8z73vcja1tqnw90aav5a

SecurityGroupId

string

セキュリティグループの ID。

sg-f8zd1toc10wmbi1v5rom

SubClustersJson

string

グローバル集約インスタンスの子インスタンス。値は JSON 文字列です。

[ { "headers": {}, "regionId": "cn-hangzhou", "sourceType": "AlibabaPrometheus", "extras": {}, "clusterId": "c39a1048921e04fceb039db2fb****", "sourceName": "arms-luyao-test", "dataSource": "", "userId": "167275301789****" }, { "headers": {}, "regionId": "cn-beijing", "sourceType": "AlibabaPrometheus", "extras": {}, "clusterId": "c6b6485496d5b400abde22cb47b5****", "sourceName": "agent-321-测试", "dataSource": "", "userId": "167275301789****" }, { "headers": {}, "regionId": "cn-zhangjiakou", "sourceType": "AlibabaPrometheus", "extras": {}, "clusterId": "c261a4f3200c446659133f1ade78****", "sourceName": "zaifeng-cardinality-01", "dataSource": "", "userId": "167275301789****" } ]

RemoteReadIntraUrl

string

リモートリード用の内部 URL。

http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read

RemoteReadInterUrl

string

リモートリード用のパブリック URL。

http://cn-beijing.arms.aliyuncs.com:9090/api/v1/prometheus/xxx/api/v1/read

RemoteWriteIntraUrl

string

リモートライト用の内部 URL。

http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v3/write

RemoteWriteInterUrl

string

リモートライト用のパブリック URL。

https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v3/write

PushGatewayIntraUrl

string

Pushgateway 用の内部 URL。

http://cn-beijing-intranet.arms.aliyuncs.com/prometheus/xxx/api/v2

PushGatewayInterUrl

string

Pushgateway 用のパブリック URL。

https://cn-beijing.arms.aliyuncs.com/prometheus/xxx/api/v2

HttpApiIntraUrl

string

HTTP API 用の内部 URL。

http://cn-beijing-intranet.arms.aliyuncs.com:9090/api/v1/prometheus/xxx

HttpApiInterUrl

string

HTTP API 用のパブリック URL。

https://cn-beijing.arms.aliyuncs.com:9443/api/v1/prometheus/xxx

AuthToken

string

認可トークン。

GciOiJIUzI1NiJ9***

PaymentType

string

課金方法。有効な値:

  • PREPAY:サブスクリプション

  • POSTPAY:従量課金

POSTPAY

GrafanaInstanceId

string

Grafana ワークスペースの ID。

grafana-rnggfvhlcdl6m71l**

ResourceGroupId

string

Prometheus インスタンスのリソースグループ ID。

rg-acfmz7nocpeidcy

ResourceType

string

リソースタイプ。

PROMETHEUS

Tags

array<object>

タグのリスト。

object

タグ。

TagKey

string

タグキー。

ac-cus-tag-3

TagValue

string

タグ値。

asg-2vc8qq7x89o11rus9uvu

Code

string

レスポンスコード。ステータスコード 200 は、リクエストが成功したことを示します。その他のステータスコードは、リクエストが失敗したことを示します。

200

Message

string

レスポンスメッセージ。

message

成功レスポンス

JSONJSON

{
  "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"
}

エラーコード

完全なリストについては、「エラーコード」をご参照ください。

変更履歴

完全なリストについては、「変更履歴」をご参照ください。