Queries the tags of specified resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:ListTagResources |
get |
*AppGroup
|
None | None |
Request syntax
GET /v4/openapi/resource-tags HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| resourceType |
string |
Yes |
The resource type. |
BIGDATA |
| resourceId |
array |
No |
The resource IDs. You can specify a maximum of 50 resource IDs. |
|
|
string |
No |
A list of resource IDs to query. You must specify this parameter or the `tag` parameter. |
i-bp185wwblwfvh1a1y1me |
|
| tag |
array<object> |
No |
The tags to query. The list can contain a maximum of 20 tags. |
|
|
object |
No |
The internal English representation of the entity type. |
||
| key |
string |
No |
The tag key. |
bm |
| value |
string |
No |
The tag value. |
Uefi |
| nextToken |
string |
No |
The token to start the next query. |
60 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
D77D0DAF-790D-F5F5-A9C0-133738165014 |
| nextToken |
string |
The token to start the next query. |
20 |
| result |
array<object> |
The list of resources. |
|
|
object |
The returned result. |
||
| tagKey |
string |
The tag key. |
GENIE_FUNCTION |
| tagValue |
string |
The tag value. |
ALLOW |
| resourceId |
string |
The resource ID. |
54041 |
| resourceType |
string |
The resource type. |
hostGroup |
Examples
Success response
JSON format
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"nextToken": "20",
"result": [
{
"tagKey": "GENIE_FUNCTION",
"tagValue": "ALLOW",
"resourceId": "54041",
"resourceType": "hostGroup"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.