Lists the Prometheus view instances.
Operation description
Lists the Prometheus view instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ListPrometheusViews |
list |
*PrometheusView
|
None | None |
Request syntax
GET /prometheus-views HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| prometheusViewIds |
string |
No |
The IDs of the Prometheus view instances. |
view-xxx |
| prometheusViewName |
string |
No |
The name of the Prometheus view. |
view1 |
| workspace |
string |
No |
The name of the workspace. |
workspace-test |
| version |
string |
No |
The instance version. Valid values: V1 and V2. |
V2 |
| resourceType |
string |
No |
The resource type. |
PROMETHEUSVIEW |
| filterRegionIds |
string |
No |
The region IDs by which to filter the results. |
cn-zhangjiakou,cn-beijing |
| resourceGroupId |
string |
No |
The resource group ID. |
rg-acfm3gn5i6bigbi |
| tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The list of labels. |
||
| key |
string |
No |
The tag key. |
key1 |
| value |
string |
No |
The tag value. |
value1 |
| maxResults |
integer |
No |
The maximum number of records to return. |
100 |
| nextToken |
string |
No |
The query token. |
44ANBjKZmQeKnaB1fXRq06w7sFYK3MUcCALMD9qQbmEiE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The schema of the response. |
||
| maxResults |
integer |
The maximum number of records returned. |
10 |
| nextToken |
string |
The token for the next query. |
2-ba4d-4b9f-aa24-dcb067a30f1c |
| prometheusViews |
array<object> |
The list of Prometheus view instances. |
|
|
object |
A Prometheus view instance. |
||
| createTime |
string |
The time when the instance was created. The time is in UTC and in the `yyyy-MM-ddTHH:mmZ` format. |
2025-07-12T02:18:36Z |
| instanceType |
string |
The instance type. Valid values are `prom-view` for a new-version aggregation view and `global-view` for an old-version aggregation view. |
prom-view |
| paymentType |
string |
The billing method. The value is fixed to `FREE`. |
FREE |
| product |
string |
The product to which the Prometheus instance belongs. Valid values: `arms` and `cms`. |
cms |
| prometheusInstanceCount |
integer |
The number of Prometheus instances in the view. |
2 |
| prometheusViewId |
string |
The Prometheus view ID. |
view-xxx |
| prometheusViewName |
string |
The name of the Prometheus view. |
view1 |
| regionId |
string |
The region ID. |
cn-zhangjiakou |
| resourceType |
string |
The resource type. The value is fixed to `PrometheusView`. |
PrometheusView |
| status |
string |
The status of the backend data storage. |
Running |
| userId |
string |
The user ID. |
123xxx |
| version |
string |
The version. |
V2 |
| workspace |
string |
The workspace to which the Prometheus instance belongs. |
default-cms-1490404746278495-cn-hangzhou |
| requestId |
string |
The ID of the request. |
0CEC5375-C554-562B-A65F-9A629907C1F0 |
| totalCount |
integer |
The total number of instances. |
66 |
Examples
Success response
JSON format
{
"maxResults": 10,
"nextToken": "2-ba4d-4b9f-aa24-dcb067a30f1c",
"prometheusViews": [
{
"createTime": "2025-07-12T02:18:36Z",
"instanceType": "prom-view",
"paymentType": "FREE",
"product": "cms",
"prometheusInstanceCount": 2,
"prometheusViewId": "view-xxx",
"prometheusViewName": "view1",
"regionId": "cn-zhangjiakou",
"resourceType": "PrometheusView",
"status": "Running",
"userId": "123xxx",
"version": "V2",
"workspace": "default-cms-1490404746278495-cn-hangzhou"
}
],
"requestId": "0CEC5375-C554-562B-A65F-9A629907C1F0",
"totalCount": 66
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.