All Products
Search
Document Center

Auto Scaling:ListTagValues

Last Updated:May 17, 2024

Queries tag values of Auto Scaling resources. This operation facilitates a deeper comprehension of your Auto Scaling resources, empowering you with the ability to manage and categorize these assets effectively.

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

Yes

cn-hangzhou

The region ID of the Auto Scaling resource.

ResourceType

String

Yes

scalinggroup

The type of the Auto Scaling resource. Set the value to scalinggroup.

NextToken

String

No

caeba0bbb2be03f84eb48b699f0a****

The pagination token that is used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.

PageSize

Integer

No

10

The number of entries per page. Maximum value: 50.

Default value: 10.

Key

String

Yes

ESS

The tag key

Response parameters

Parameter

Type

Example

Description

NextToken

String

caeba0bbb2be03f84eb48b699f0a****

The pagination information.

RequestId

String

AB444F46-1CFF-4B06-B8F0-B45D3158****

The request ID.

PageSize

Integer

10

The number of entries per page.

Values

Array of String

Doc

The information about the tag values.

Examples

Sample requests

http(s)://ess.aliyuncs.com/?Action=ListTagValues
&RegionId=cn-hangzhou
&ResourceType=scalinggroup
&NextToken=caeba0bbb2be03f84eb48b699f0a****
&PageSize=10
&Key=ESS
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListTagValuesResponse>
    <NextToken>caeba0bbb2be03f84eb48b699f0a****</NextToken>
    <RequestId>AB444F46-1CFF-4B06-B8F0-B45D3158****</RequestId>
    <PageSize>10</PageSize>
    <Values>Doc</Values>
</ListTagValuesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "NextToken" : "caeba0bbb2be03f84eb48b699f0a****",
  "RequestId" : "AB444F46-1CFF-4B06-B8F0-B45D3158****",
  "PageSize" : 10,
  "Values" : [ "Doc" ]
}

Error codes

For a list of error codes, see Service error codes.

HTTP status code

Error code

Error message

Description

400

InvalidResourceType.NotFound

The ResourceType provided does not exist in our records.

The value of ResourceType is invalid.

400

InvalidTagKey.Malformed

The specified tag key \"%s\" is not valid.

The tag key does not exist.