Queries the tag keys of resources within the current account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
tag:ListTagKeys |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| 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 |
AAAAAUYb00R0gHZBE8FVDeoh2ME93VeeEPUHs**** |
| 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 returned result. |
||
| NextToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. |
AAAAAUDnubHKJbVTCdlIGYUPtsu3EoN3bfdgjDA**** |
| RequestId |
string |
The ID of the request. |
44C8A952-D6B0-5BC8-82D5-93BA02E26F2E |
| TagKeys |
array |
The tag keys. |
|
|
string |
A tag key. |
test_key |
Examples
Success response
JSON format
{
"NextToken": "AAAAAUDnubHKJbVTCdlIGYUPtsu3EoN3bfdgjDA****",
"RequestId": "44C8A952-D6B0-5BC8-82D5-93BA02E26F2E",
"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. |
| 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.