CmdID / aws / aws resourcegroupstaggingapi
aws resourcegroupstaggingapi get-tag-keys
Returns all tag keys currently in use in the specified Amazon Web Services Region for the calling account. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To get a list of all tag keys
The following get-tag-keys example retrieves the list of all tag key names used by resources in the account.
aws resourcegroupstaggingapi get-tag-keysIdentifyIts output
{
"TagKeys": [
"Environment",
"CostCenter",
"Department"
]
}For more information, see What is Tag Editor? in the Tagging AWS Resources and Tag Editor User Guide.
Options
--pagination-tokenSpecifies a PaginationToken response value from a previous request to indicate that you want the next page of results.