Updates the data sources of Prometheus instance for GlobalView.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
arms:UpdatePrometheusGlobalView | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region in which the Prometheus instance resides. | cn-shenzhen |
GroupName | string | Yes | The name of the global aggregation instance. | zyGlobalView |
MostRegionId | string | Yes | The region ID of the global aggregation instance. | cn-hangzhou |
ClusterId | string | Yes | The ID of the Prometheus instance. | global**** |
ResourceGroupId | string | No | The ID of the resource group to which the Prometheus instance belongs. | rg-acfmxyexli2**** |
SubClustersJson | string | Yes | The data sources of the Prometheus instance for GlobalView. | [ { "headers":{ }, "regionId":"cn-hangzhou", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c39a1048921e04f***********", "sourceName":"arms-luyao-test", "dataSource":"", "userId":"1672753***********" }, { "headers":{ }, "regionId":"cn-beijing", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c6b6485496d5b40***********", "sourceName":"agent-321-test", "dataSource":"", "userId":"1672753***********" }, { "headers":{ }, "regionId":"cn-zhangjiakou", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c261a4f3200c446***********", "sourceName":"zaifeng-cardinality-01", "dataSource":"", "userId":"1672753***********" } ] |
AllSubClustersSuccess | boolean | Yes | To edit a GlobalView aggregated instance, do you require all passed child instances to be verified successfully before creating a GlobalView instance (optional, default to false):
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": {
"Success": true,
"FailedInstances": [
{
"SourceName": "sourcename-test",
"SourceType": "AlibabaPrometheus",
"UserId": "23784673825*******",
"ClusterId": "cdb65ed2d527345*********"
}
]
},
"RequestId": "E9C9DA3D-10FE-472E-9EEF-2D0A3E41****",
"Message": "message",
"Code": 200
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-08-17 | The request parameters of the API has changed | View Change Details |
2023-08-11 | The request parameters of the API has changed | View Change Details |
2023-08-04 | The request parameters of the API has changed | View Change Details |
2023-03-29 | The request parameters of the API has changed | View Change Details |
2023-03-20 | The internal configuration of the API is changed, but the call is not affected | View Change Details |