Queries the tags of one or more resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:ListTagResources |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| NextToken |
string |
No |
The token to start the next query. |
AAAAAfu+XtuBE55iRLHEYYuojI4= |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
service |
| Tag |
array<object> |
No |
The custom tags. |
|
|
object |
No |
The custom tag. |
||
| Key |
string |
No |
The tag key. |
Usage |
| Value |
string |
No |
The tag value. |
test |
| ResourceId |
array |
No |
The resource ID. |
|
|
string |
No |
The resource ID. You can specify up to 50 resource IDs. |
service-xxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token to start the next query. |
AAAAAfu+XtuBE55iRLHEYYuojI4= |
| RequestId |
string |
The request ID. |
A361BA9E-xxxx-xxxx-xxxx-C26E5180456E |
| TagResources |
array<object> |
A collection of resources and their tags. The collection includes resource IDs, resource types, and tag key-value pairs. |
|
|
object |
The information about the resource with attached tags. |
||
| ResourceType |
string |
The resource type. Valid values:
|
service |
| ResourceId |
string |
The resource ID. |
service-xxx |
| TagKey |
string |
The tag key. |
usage |
| TagValue |
string |
The tag value. |
test |
Examples
Success response
JSON format
{
"NextToken": "AAAAAfu+XtuBE55iRLHEYYuojI4=",
"RequestId": "A361BA9E-xxxx-xxxx-xxxx-C26E5180456E",
"TagResources": [
{
"ResourceType": "service",
"ResourceId": "service-xxx",
"TagKey": "usage",
"TagValue": "test"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.