ListTagResources
Lists the resources associated with tags.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:ListTagResources |
list |
*AgentSpace
|
None | None |
Request syntax
GET /tags HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| resourceType |
string |
Yes |
The resource type. Set the value to agentspace. |
agentspace |
| resourceId |
array |
No |
The list of resource IDs. |
["space-a","space-b"] |
|
string |
No |
The resource ID. |
space-a |
|
| tag |
array<object> |
No |
The tag filter conditions. Multiple conditions are combined with the AND operator. At least one of resourceId and tag must be specified. |
|
|
object |
No |
The tag. |
[{\"key\": \"env\", \"value\": \"test\"}] |
|
| key |
string |
No |
The tag key. |
key1 |
| value |
string |
No |
The tag value. |
value1 |
| nextToken |
string |
No |
The pagination token. An empty value indicates that no next page is available. |
eyJuZXh0IjoiNDAifQ== |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
{ "requestId": "EB27D183-8F6C-5C5A-A6A3-E0508AF54F78", "tagResources": [{ "resourceType": "agentspace", "resourceId": "space-a", "tagKey": "key1", "tagValue": "value1" }] } |
|
| requestId |
string |
The request ID. |
EB27D183-8F6C-5C5A-A6A3-E0508AF54F78 |
| tagResources |
array<object> |
The list of tag resources. |
[{ "resourceType": "agentspace", "resourceId": "space-a", "tagKey": "key1", "tagValue": "value1" }] |
|
object |
The tag information. |
{ "resourceType": "agentspace", "resourceId": "space-a", "tagKey": "key1", "tagValue": "value1" } |
|
| resourceId |
string |
The resource ID. |
space-a |
| resourceType |
string |
The resource type. Set the value to agentspace. |
agentspace |
| tagKey |
string |
The tag key. |
key1 |
| tagValue |
string |
The tag value. |
value1 |
| nextToken |
string |
The pagination token. An empty value indicates that no next page is available. |
eyJsYXN0SWQiOjEyMH0= |
Examples
Success response
JSON format
{
"requestId": "EB27D183-8F6C-5C5A-A6A3-E0508AF54F78",
"tagResources": [
{
"resourceId": "space-a",
"resourceType": "agentspace",
"tagKey": "key1",
"tagValue": "value1"
}
],
"nextToken": "eyJsYXN0SWQiOjEyMH0="
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.