GetPrometheusView
Queries the details of a specified Prometheus view instance.
Operation description
Queries a specified Prometheus view instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetPrometheusView |
get |
*PrometheusView
|
None | None |
Request syntax
GET /prometheus-views/{prometheusViewId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| prometheusViewId |
string |
Yes |
The instance ID. |
rw-xxxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| resourceGroupId |
string |
No |
The resource group ID. |
rg-aek2bhocin5e2na |
| aliyunLang |
string |
No |
The language. Default value: zh. Valid values: zh and en. |
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| prometheusView |
object |
The view instance. |
|
| 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" ] } |
| authToken |
string |
The authentication token string. |
eJxxxxxx |
| createTime |
string |
The time when the instance was created. The time is in UTC+0 and in the yyyy-MM-ddTHH:mmZ format. |
2025-08-10T02:07:53Z |
| enableAuthFreeRead |
boolean |
Indicates whether authentication-free read is enabled. |
true |
| enableAuthToken |
boolean |
Indicates whether the authentication token is enabled. |
true |
| httpApiInterUrl |
string |
The public HTTP URL. |
http://xxxxxxxx |
| httpApiIntraUrl |
string |
The internal HTTP URL. |
http://xxxxxxxx |
| httpApiInternalUrl |
string |
The internal HTTP URL. |
https://workspace-xxx.cn-hangzhou-internal.log.aliyuncs.com/prometheus/workspace-xxx/aliyun-prom-rw-xxx |
| instanceType |
string |
The instance type. The value is fixed as prom-view. |
prom-view |
| paymentType |
string |
The billing type. The value is currently fixed as FREE. |
FREE |
| product |
string |
The product to which the Prometheus instance belongs. |
cms |
| prometheusInstances |
array<object> |
The list of Prometheus instances. |
|
|
object |
The list of Prometheus instances. |
||
| prometheusInstanceId |
string |
The instance ID. |
rw-63549e054ff596a4149927961dff |
| regionId |
string |
The region ID. |
cn-north-2-gov-1 |
| userId |
string |
The user ID. |
122xxxxx |
| prometheusViewId |
string |
The Prometheus view ID. |
view-xxx |
| prometheusViewName |
string |
The Prometheus view name. |
view1 |
| regionId |
string |
The region ID. |
cn-shanghai |
| remoteReadInterUrl |
string |
The public URL for remote read. |
http://workspace-default-cms-xxx-cn-hangzhou.cn-hangzhou.log.aliyuncs.com/prometheus/workspace-default-cms-xxx-cn-hangzhou/xxx/api/v1/read |
| remoteReadIntraUrl |
string |
The internal URL for remote read. |
http://workspace-default-cms-xxx-cn-hangzhou.cn-hangzhou-intranet.log.aliyuncs.com/prometheus/workspace-default-cms-xxx-cn-hangzhou/xxx/api/v1/read |
| remoteReadInternalUrl |
string |
The internal endpoint for remote read. |
http://workspace-default-cms-xxx-cn-hangzhou.cn-hangzhou-internal.log.aliyuncs.com/prometheus/workspace-default-cms-xxx-cn-hangzhou/xxx/api/v1/read |
| resourceGroupId |
string |
The resource group ID. |
rg-acfm3gn5i6bigbi |
| resourceType |
string |
The resource type. The value is fixed as PrometheusView. |
RegistryModule |
| status |
string |
The status of the backend data storage. |
Pending2Running |
| supportAuthTypes |
array |
The supported authentication types. |
|
|
string |
The supported authentication types. |
BasicAuth |
|
| tags |
array<object> |
The tag keys of the instance. |
|
|
object |
The tag. |
||
| key |
string |
The integration key for PagerDuty. |
global_score_series |
| value |
string |
The tag value. |
371293199010092839 |
| userId |
string |
The user ID. |
11222 |
| version |
string |
The version. |
V1 |
| workspace |
string |
The workspace to which the environment belongs. |
cms-monitor-test-aysls-pub-cn-fuzhou-monitor |
| folderUrl |
string |
The dashboard URL. |
https://xxxx |
| grafanaInstanceId |
string |
The instance ID of the attached managed Grafana instance. |
g-xxx |
| grafanaInstanceName |
string |
The name of the associated managed Grafana instance. |
gxxx |
| requestId |
string |
Id of the request |
0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8 |
Examples
Success response
JSON format
{
"prometheusView": {
"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}",
"authToken": "eJxxxxxx",
"createTime": "2025-08-10T02:07:53Z",
"enableAuthFreeRead": true,
"enableAuthToken": true,
"httpApiInterUrl": "http://xxxxxxxx",
"httpApiIntraUrl": "http://xxxxxxxx",
"httpApiInternalUrl": "https://workspace-xxx.cn-hangzhou-internal.log.aliyuncs.com/prometheus/workspace-xxx/aliyun-prom-rw-xxx",
"instanceType": "prom-view",
"paymentType": "FREE",
"product": "cms",
"prometheusInstances": [
{
"prometheusInstanceId": "rw-63549e054ff596a4149927961dff",
"regionId": "cn-north-2-gov-1",
"userId": "122xxxxx"
}
],
"prometheusViewId": "view-xxx",
"prometheusViewName": "view1",
"regionId": "cn-shanghai",
"remoteReadInterUrl": "http://workspace-default-cms-xxx-cn-hangzhou.cn-hangzhou.log.aliyuncs.com/prometheus/workspace-default-cms-xxx-cn-hangzhou/xxx/api/v1/read",
"remoteReadIntraUrl": "http://workspace-default-cms-xxx-cn-hangzhou.cn-hangzhou-intranet.log.aliyuncs.com/prometheus/workspace-default-cms-xxx-cn-hangzhou/xxx/api/v1/read",
"remoteReadInternalUrl": "http://workspace-default-cms-xxx-cn-hangzhou.cn-hangzhou-internal.log.aliyuncs.com/prometheus/workspace-default-cms-xxx-cn-hangzhou/xxx/api/v1/read",
"resourceGroupId": "rg-acfm3gn5i6bigbi",
"resourceType": "RegistryModule",
"status": "Pending2Running",
"supportAuthTypes": [
"BasicAuth"
],
"tags": [
{
"key": "global_score_series",
"value": "371293199010092839"
}
],
"userId": "11222",
"version": "V1",
"workspace": "cms-monitor-test-aysls-pub-cn-fuzhou-monitor",
"folderUrl": "https://xxxx",
"grafanaInstanceId": "g-xxx ",
"grafanaInstanceName": "gxxx"
},
"requestId": "0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.