ListTagResources
Queries the associations between resources and tags.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:ListTagResources |
list |
*AccessConfiguration
*User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
No |
The directory ID. |
d-00fc2p61**** |
| ResourceId |
array |
No |
The list of resource IDs. You can specify up to 50 resource IDs in a single call. Note
Important If the DirectoryId parameter is not specified, you must add the prefix "${DirectoryId}_" to the resource ID. |
|
|
string |
No |
The resource ID. |
ac-00yuom64d4zjfxya5b63 |
|
| ResourceType |
string |
Yes |
The resource type. Users and access configurations are supported.
|
accessConfiguration |
| Tag |
array<object> |
No |
The list of tags. You can specify up to 20 tags in a single call. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. Note
|
key |
| Value |
string |
No |
The tag value. |
value |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results when the response is truncated. |
K1c3o9K7pFxoTtxH1Nm7MMLb7zrDGvftYBQBPDVv7AD3a8yhRb3Mk8L9ivmN6bFSjfkZNTAg3h4**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| NextToken |
string |
The token for the next page of results. If NextToken is empty, the results are not truncated. |
K1c3o9K7pFxoTtxH1Nm7MMLb7zrDGvftYBQBPDVv7AD3a8yhRb3Mk8L9ivmN6bFSjfkZNTAg3h4**** |
| RequestId |
string |
The request ID. |
20E9650E-EC23-593E-933F-EA0D280D040C |
| TagResources |
array<object> |
The list of resource-tag associations. |
|
|
object |
The resource-tag association. |
||
| ResourceId |
string |
The resource ID. |
u-00a542dx4fp21i7uig48 |
| ResourceType |
string |
The resource type. |
user |
| TagKey |
string |
The tag key. |
key |
| TagValue |
string |
The tag value. |
value |
Examples
Success response
JSON format
{
"NextToken": "K1c3o9K7pFxoTtxH1Nm7MMLb7zrDGvftYBQBPDVv7AD3a8yhRb3Mk8L9ivmN6bFSjfkZNTAg3h4****",
"RequestId": "20E9650E-EC23-593E-933F-EA0D280D040C",
"TagResources": [
{
"ResourceId": "u-00a542dx4fp21i7uig48",
"ResourceType": "user",
"TagKey": "key",
"TagValue": "value"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.