ListTagResources
Queries resource tag relationships.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
outboundbot:ListTagResources |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
Deprecated. |
cn-shanghai |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
INSTANCE |
| NextToken |
string |
No |
The token for the next query. |
b949ae1f-01dc-4191-ae5a-70fbe6772fd8 |
| ResourceId |
array |
No |
The list of resource IDs. Valid values of n: 1 to 50. |
ResourceId.1=b949ae1f-01dc-4191-ae5a-70fbe6772fd8 |
|
string |
No |
The resource ID. If the resource type is INSTANCE, specify the instance ID. |
af651b72-4a64-4340-ae7f-2cf0054d32f9 |
|
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. Valid values of n: 1 to 20. |
Tag.1.Key=key1 |
| Value |
string |
No |
The tag value. Valid values of n: 1 to 20. |
Tag.1.Value=value1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| NextToken |
string |
The token for the next query. |
b949ae1f-01dc-4191-ae5a-70fbe6772fd8 |
| RequestId |
string |
The request ID. |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Code |
string |
The status code of the operation. |
OK |
| Message |
string |
The message returned by the operation. |
Success |
| TagResources |
array<object> |
The list of resources. |
|
|
object |
|||
| ResourceType |
string |
The resource type. |
instance |
| TagValue |
string |
The tag value. |
value1 |
| ResourceId |
string |
The resource ID. |
b949ae1f-01dc-4191-ae5a-70fbe6772fd8 |
| TagKey |
string |
The tag key. |
key1 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"NextToken": "b949ae1f-01dc-4191-ae5a-70fbe6772fd8",
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"Success": true,
"Code": "OK",
"Message": "Success",
"TagResources": [
{
"ResourceType": "instance",
"TagValue": "value1",
"ResourceId": "b949ae1f-01dc-4191-ae5a-70fbe6772fd8",
"TagKey": "key1"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.