Queries the values of created tags.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListTagValues

The operation that you want to perform. Set the value to ListTagValues.

RegionId String No cn-hangzhou

The ID of the region.

MaxResults Integer No 50

The maximum number of results on each page.

NextToken String No 3272h923879hsaksad

The token that is used to retrieve the next page of results.

ResourceType String No template

The type of the tagged resource.

Key String No k1

The tag key to query.

Response parameters

Parameter Type Example Description
MaxResults Integer 50

The maximum number of results on each page.

NextToken String 83u29j2dj3dskds

The token that is used to retrieve the next page of results.

RequestId String 65591133-1188-4935-B78F-20F72

The ID of the request.

Values List ["v1","v1"]

The tag value.

Examples

Sample requests

http(s)://oos.cn-hangzhou.aliyuncs.com/? Action=ListTagValues
&<Common request parameters>

Sample success responses

XML format

<ListTagValuesResponse>
  <RequestId>65591133-1188-4935-B78F-20F722DCD647</RequestId>
  <NextToken>5c32b9208a941197e0b5e8707e68181f</NextToken>
  <Values>v1</Values>
  <Values>v1</Values>
</ListTagValuesResponse>

JSON format

{
    "RequestId": "65591133-1188-4935-B78F-20F722DCD647",
    "NextToken": "5c32b9208a941197e0b5e8707e68181f",
    "Values": [
        "v1",
        "v1"
    ]
}

Error codes

For a list of error codes, visit the API Error Center.