GetPrometheusInstance
Queries the details of a specified Prometheus instance.
Operation description
Retrieves the details of a Prometheus instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetPrometheusInstance |
get |
*PrometheusInstance
|
None | None |
Request syntax
GET /prometheus-instances/{prometheusInstanceId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| prometheusInstanceId |
string |
Yes |
The instance ID. |
rw-abc123 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| resourceGroupId |
string |
No |
The resource group ID. |
rg-aek2bhocin5e2na |
| aliyunLang |
string |
No |
The locale. Default value: zh. Valid values: zh, en. |
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| prometheusInstance |
object |
The Prometheus instance details. |
|
| accessType |
string |
The access type. Valid values: readWrite, readOnly, httpReadOnly |
readOnly |
| archiveDuration |
integer |
The number of days to automatically archive and retain data after the storage expires. A value of 0 indicates that data is not archived, and a value of 3650 indicates permanent retention. |
90 |
| authFreeReadPolicy |
string |
The authentication-free read policy. IP CIDR blocks and VPC IDs are supported. |
{ "SourceIp": [ "192.168.1.0/24", "172.168.2.22" ], "SourceVpc": [ "vpc-xx1", "vpc-xx2" ] } |
| authFreeWritePolicy |
string |
The authentication-free write policy. IP CIDR blocks and VPC IDs are supported. |
{ "SourceIp": [ "192.168.1.0/24", "172.168.2.22" ], "SourceVpc": [ "vpc-xx1", "vpc-xx2" ] } |
| authToken |
string |
The authentication token string. |
eJwixxxxx |
| 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 |
| enableAuthFreeRead |
boolean |
Specifies whether authentication-free read is enabled. |
true |
| enableAuthFreeWrite |
boolean |
Specifies whether authentication-free write is enabled. |
true |
| enableAuthToken |
boolean |
Specifies whether the authentication token is enabled. |
true |
| extraInfo |
object |
The extended information. |
{"key":"value"} |
|
string |
The additional extended information. |
value |
|
| httpApiInterUrl |
string |
The public HTTP endpoint. |
http://workspace-default-cms-xxxxxxx |
| httpApiIntraUrl |
string |
The HTTP private network endpoint. |
http://workspace-default-cms-xxxxxxx |
| httpApiInternalUrl |
string |
The internal HTTP endpoint. |
http://workspace-default-cms-xxxxxxx |
| instanceType |
string |
The Prometheus instance type. |
remote-write |
| paymentType |
string |
The billing method. Valid values: POSTPAY: Pay-as-you-go based on the number of reported metrics. POSTPAY_GB: Pay-as-you-go based on the volume of written metrics. |
POSTPAY |
| product |
string |
The product to which the Prometheus instance belongs, such as ARMS or CMS. |
cms |
| prometheusInstanceId |
string |
The instance ID. |
rw-524ada714221af267c73122af2e1 |
| prometheusInstanceName |
string |
The instance name. |
test-prom-name |
| pushGatewayInterUrl |
string |
The public PushGateway endpoint. |
http://workspace-default-cms-xxxxxxx |
| pushGatewayIntraUrl |
string |
The PushGateway private network endpoint. |
http://workspace-default-cms-xxxxxxx |
| pushGatewayInternalUrl |
string |
The internal PushGateway endpoint. |
http://workspace-default-cms-xxxxxxx |
| regionId |
string |
The region ID. |
cn-heyuan |
| remoteReadInterUrl |
string |
The public read endpoint. |
http://workspace-default-cms-xxxxxxx |
| remoteReadIntraUrl |
string |
The private read endpoint. |
https://workspace-default-cms-1xxxxxxxxxx |
| remoteReadInternalUrl |
string |
The internal RemoteRead endpoint. |
https://workspace-default-cms-1xxxxxxxxxx |
| remoteWriteInterUrl |
string |
The public write endpoint. |
https://workspace-default-cms-xxxxxxxxxx |
| remoteWriteIntraUrl |
string |
The private write endpoint. |
https://workspace-default-cms-xxxxxxxxxx |
| remoteWriteInternalUrl |
string |
The internal RemoteWrite endpoint. |
https://workspace-default-cms-xxxxxxxxxx |
| resourceGroupId |
string |
The resource group ID. |
rg-acfm3gn5i6bigbi |
| resourceType |
string |
The resource type. Fixed value: PrometheusInstance. |
Prometheus |
| status |
string |
The instance status. |
Running |
| storageDuration |
integer |
The storage duration in days. |
90 |
| supportAuthTypes |
array |
The supported authentication types. |
|
|
string |
The authentication type. Valid values:
|
BasicAuth |
|
| tags |
array<object> |
The list of tags. |
|
|
object |
The tag. |
||
| key |
string |
The tag key. |
openStorage |
| value |
string |
The tag value. |
130303196111114281 |
| userId |
string |
The user ID. |
170731234567 |
| version |
string |
The version. |
V1 |
| workspace |
string |
The workspace to which the Prometheus instance belongs. |
ws1 |
| folderUrl |
string |
The URL of the visualization dashboard directory. |
https://gnew.console.aliyun.com/dashboards/f/c49a80d2a551d4a20a8c4b996b0be4e52/xxxxxxx |
| grafanaInstanceId |
string |
The instance ID of the attached managed Grafana instance. |
SHARED |
| grafanaInstanceName |
string |
The name of the bound managed Grafana instance. |
Shared Edition |
| paymentTypeUpdateTime |
string |
The time when the billing method of the instance was updated. The time is in UTC format. |
2025-08-10T02:07:53Z |
| storeConfig | PrometheusInstanceStoreConfig |
The Prometheus storage configuration. |
|
| requestId |
string |
The unique request ID. |
264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC |
Examples
Success response
JSON format
{
"prometheusInstance": {
"accessType": "readOnly",
"archiveDuration": 90,
"authFreeReadPolicy": "{\n \"SourceIp\": [\n \"192.168.1.0/24\",\n \"172.168.2.22\"\n ],\n \"SourceVpc\": [\n \"vpc-xx1\",\n \"vpc-xx2\"\n ]\n}",
"authFreeWritePolicy": "{\n \"SourceIp\": [\n \"192.168.1.0/24\",\n \"172.168.2.22\"\n ],\n \"SourceVpc\": [\n \"vpc-xx1\",\n \"vpc-xx2\"\n ]\n}",
"authToken": "eJwixxxxx",
"createTime": "2025-08-10T02:07:53Z",
"enableAuthFreeRead": true,
"enableAuthFreeWrite": true,
"enableAuthToken": true,
"extraInfo": {
"key": "value"
},
"httpApiInterUrl": " http://workspace-default-cms-xxxxxxx",
"httpApiIntraUrl": " http://workspace-default-cms-xxxxxxx",
"httpApiInternalUrl": " http://workspace-default-cms-xxxxxxx",
"instanceType": "remote-write",
"paymentType": "POSTPAY",
"product": "cms",
"prometheusInstanceId": "rw-524ada714221af267c73122af2e1",
"prometheusInstanceName": "test-prom-name",
"pushGatewayInterUrl": " http://workspace-default-cms-xxxxxxx",
"pushGatewayIntraUrl": " http://workspace-default-cms-xxxxxxx\n",
"pushGatewayInternalUrl": " http://workspace-default-cms-xxxxxxx",
"regionId": "cn-heyuan",
"remoteReadInterUrl": " http://workspace-default-cms-xxxxxxx",
"remoteReadIntraUrl": "https://workspace-default-cms-1xxxxxxxxxx",
"remoteReadInternalUrl": "https://workspace-default-cms-1xxxxxxxxxx",
"remoteWriteInterUrl": "https://workspace-default-cms-xxxxxxxxxx",
"remoteWriteIntraUrl": "https://workspace-default-cms-xxxxxxxxxx",
"remoteWriteInternalUrl": "https://workspace-default-cms-xxxxxxxxxx",
"resourceGroupId": "rg-acfm3gn5i6bigbi",
"resourceType": "Prometheus",
"status": "Running",
"storageDuration": 90,
"supportAuthTypes": [
"BasicAuth"
],
"tags": [
{
"key": "openStorage",
"value": "130303196111114281"
}
],
"userId": "170731234567",
"version": "V1",
"workspace": "ws1",
"folderUrl": "https://gnew.console.aliyun.com/dashboards/f/c49a80d2a551d4a20a8c4b996b0be4e52/xxxxxxx",
"grafanaInstanceId": "SHARED",
"grafanaInstanceName": "Shared edition",
"paymentTypeUpdateTime": "2025-08-10T02:07:53Z",
"storeConfig": {
"queryCacheEnable": false,
"parallelEnable": false,
"parallelMode": "static",
"parallelCountPerHost": 2,
"totalParallelCount": 8
}
},
"requestId": "264C3E89-XXXX-XXXX-XXXX-CE9C2196C7DC"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.