Queries the tags that are attached to resources in a specified region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ListTagResourcesForRegion |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results. Optional for the first request. If the query does not return all results, the response contains a token. You can use this token in the next request to continue the query. |
212db86sca4384811e0b5e8707e****** |
| ResourceType |
string |
No |
The resource type. Valid values:
|
cluster |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
If the response does not return all results, this parameter is returned. You can use this token in the next request to continue the query. |
212db86sca4384811e0b5e8707e****** |
| RequestId |
string |
The request ID. |
688C04E4-23F8-409F-8A38-B954D5****** |
| TagResources |
object |
||
| TagResource |
array<object> |
The information about the clusters and tags. |
|
|
object |
The tagged resource. |
||
| ResourceType |
string |
The resource type. Valid values:
|
cluster |
| TagValue |
string |
The tag value. |
test |
| ResourceId |
string |
The cluster ID. |
pc-**************** |
| TagKey |
string |
The tag key. |
type |
Examples
Success response
JSON format
{
"NextToken": "212db86sca4384811e0b5e8707e******",
"RequestId": "688C04E4-23F8-409F-8A38-B954D5******",
"TagResources": {
"TagResource": [
{
"ResourceType": "cluster",
"TagValue": "test",
"ResourceId": "pc-****************",
"TagKey": "type"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.