ListPrometheusInstances
Retrieves a list of Prometheus instances.
Operation description
Retrieves a list of Prometheus instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ListPrometheusInstances |
list |
*PrometheusInstance
|
None | None |
Request syntax
GET /prometheus-instances HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| prometheusInstanceIds |
string |
No |
The list of instance IDs, separated by commas. |
rw-00001,rw-00002,rw-00003 |
| prometheusInstanceName |
string |
No |
The name of the instance. Partial match is supported. |
test |
| workspace |
string |
No |
The workspace to which the instance belongs. |
workspace-test |
| version |
string |
No |
The version of the instance. Valid values:
|
V2 |
resourceType
deprecated
|
string |
No |
The resource type of the instance. |
Prometheus |
filterRegionIds
deprecated
|
string |
No |
The list of region IDs used for filtering, separated by commas. |
cn-shenzhen |
| resourceGroupId |
string |
No |
The ID of the resource group. |
rg-aek2bhocin5e2na |
| tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The tag. |
||
| key |
string |
No |
The tag key. |
testKey |
| value |
string |
No |
The tag value. |
testValue |
| maxResults |
integer |
No |
The maximum number of records to return. |
10 |
| nextToken |
string |
No |
The next token. |
11a111111111a1111a1111aaaa1a1aa1aa11aa111aa11a1111a1a111aa1a111111111a11a1aa1111a111aa11a11aa1a1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| maxResults |
integer |
The maximum number of records to return. |
10 |
| nextToken |
string |
The token for the next query. |
11a111111111a1111a1111aaaa1a1aa1aa11aa111aa11a1111a1a111aa1a1111a1a111a1a111111111111111111111aa |
| prometheusInstances |
array<object> |
The list of Prometheus instances. |
|
|
object |
The Prometheus instance. |
||
| accessType |
string |
The access type. Valid values:
|
readWrite |
| createTime |
string |
The time when the instance was created. The time is displayed in UTC+0 in the yyyy-MM-ddTHH:mmZ format. |
2025-08-10T02:07:53Z |
| instanceType |
string |
The instance type. |
remote-write |
| paymentType |
string |
The billing method. Valid values:
|
POSTPAY_GB |
| product |
string |
The product to which the Prometheus instance belongs. |
arms |
| prometheusInstanceId |
string |
The ID of the instance. |
rw-63549e054ff596a4149927961dff |
| prometheusInstanceName |
string |
The name of the instance. |
test-prom-name |
| regionId |
string |
The region ID. |
cn-nanjing |
| resourceType |
string |
The resource type. |
Prometheus |
| status |
string |
The status of the backend data storage. |
Pending2Running |
| supportAuthTypes |
array |
The supported authentication types. |
|
|
string |
The authentication type. |
BasicAuth |
|
| userId |
string |
The user ID. |
17073812345 |
| version |
string |
The version. |
V1 |
| workspace |
string |
The workspace to which the Prometheus instance belongs. |
default-cms-115214006-cn-hangzhou |
| resourceGroupId |
string |
The ID of the resource group. |
rg-aek2bhocin5e2na |
| requestId |
string |
Id of the request |
264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC |
| totalCount |
integer |
The total number of instances. |
66 |
Examples
Success response
JSON format
{
"maxResults": 10,
"nextToken": "xxxxxxxxxx",
"prometheusInstances": [
{
"accessType": "readWrite",
"createTime": "2025-08-10T02:07:53Z",
"instanceType": "remote-write",
"paymentType": "POSTPAY_GB",
"product": "arms",
"prometheusInstanceId": "rw-63549e054ff596a4149927961dff",
"prometheusInstanceName": "test-prom-name",
"regionId": "cn-nanjing",
"resourceType": "Prometheus",
"status": "Pending2Running",
"supportAuthTypes": [
"BasicAuth"
],
"userId": "17073812345",
"version": "V1",
"workspace": "default-cms-115214006-cn-hangzhou",
"resourceGroupId": "rg-aek2bhocin5e2na"
}
],
"requestId": "264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC",
"totalCount": 66
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.