Queries the tag keys of resources within the management account or a member of your resource directory.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcecenter:SearchMultiAccountResources |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Scope |
string |
Yes |
The search scope. The value of this parameter can be one of the following items:
|
rd-r4**** |
| MaxResults |
integer |
No |
The maximum number of entries to return on each page. Valid values: 1 to 100. Default value: 20. |
10 |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. If the total number of entries returned for the current request exceeds the value of the |
eyJzZWFyY2hBZnRlcnMiOlsiMTAwMTU2Nzk4MTU1OSJd**** |
| TagKey |
string |
No |
The tag key. |
test_key |
| MatchType |
string |
No |
The matching mode. Valid values:
|
Equals |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| NextToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. |
AAAAARfZmVDe9NvRXloR5+8CK9nNJufMdRA7W1miLC1P**** |
| RequestId |
string |
The ID of the request. |
FA6086F9-6363-51A5-A507-88E3201EBCCB |
| TagKeys |
array |
The tag keys. |
|
|
string |
A tag key. |
test_key |
Examples
Success response
JSON format
{
"NextToken": "AAAAARfZmVDe9NvRXloR5+8CK9nNJufMdRA7W1miLC1P****",
"RequestId": "FA6086F9-6363-51A5-A507-88E3201EBCCB",
"TagKeys": [
"test_key"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 400 | InvalidParameter.MaxResults | The specified parameter MaxResults is not valid. | The MaxResults parameter is invalid. |
| 400 | MultiAccountServiceNotEnabled | Multi account ResourceCenter service is not enabled. | |
| 403 | NoPermission.AccountScope | The operator is not permitted for this account scope. | The operator is not permitted for this account scope. |
| 404 | NotExists.ResourceDirectory | The resource directory for the account is not enabled. | No resource directory is enabled for the account. |
| 404 | NotExists.ResourceDirectory.FolderId | The specified folder does not exist. | The specified folder does not exist. |
| 409 | NoPermission.ResourceDirectory.MemberAccount | ResourceDirectory Member Account is not authorized to perform this operation. | |
| 409 | InvalidParameter.Scope | The Scope is invalid. | |
| 409 | InvalidParameter.MatchType | The specified parameter MatchType is not valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.