CmdID / aws / aws resourcegroupstaggingapi
aws resourcegroupstaggingapi get-tag-values
Returns all tag values for the specified key that are used in the specified Amazon Web Services Region for the calling account. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To get a list of all tag values
The following get-tag-values example displays all of the values used for the specified key for all resources in the current AWS Region.
aws resourcegroupstaggingapi get-tag-values --key=EnvironmentIdentify--keySpecifies the tag key for which you want to list all existing values that are currently used in the specified Amazon Web Services Region for the calling account.Its output
{
"TagValues": [
"Alpha",
"Gamma",
"Production"
]
}For more information, see What is Tag Editor? in the Tagging AWS Resources and Tag Editor User Guide.
Options
--keySpecifies the tag key for which you want to list all existing values that are currently used in the specified Amazon Web Services Region for the calling account.--pagination-tokenSpecifies a PaginationToken response value from a previous request to indicate that you want the next page of results.