Queries tags. You can call the ListTagResources operation to query tags that are added to Auto Scaling resources, thereby clarifying resource utilization and facilitating efficient management. This operation aids in the automation of resource categorization and permission management processes.
Operation description
- Specify at least one of the following request parameters:
ResourceIds
andTags
.Tags.Key
andTags.Value
are used to specify the query objects. - If you provide both
ResourceIds
andTags
in your request, the response will exclusively include Auto Scaling resources that satisfy the criteria set by these parameters, ensuring targeted and precise information retrieval.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the resource. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ResourceType | string | Yes | The resource type. Set the value to scalinggroup. | scalinggroup |
NextToken | string | No | The token that determines the start point of the next query. | caeba0bbb2be03f84eb48b699f0a4883 |
ResourceIds | array | No | The IDs of the Auto Scaling resources. You can specify 1 to 50 resource IDs. | |
string | No | The IDs of the Auto Scaling resources. You can specify 1 to 50 resource IDs. | asg-bp17xb4x1vr29lgt**** | |
Tags | object [] | No | Details of the tags. | |
Key | string | No | The key of the tag. The key is used to perform an exact match of Auto Scaling resources. The key must be 1 to 128 characters in length.
| TestKey |
Value | string | No | The value of the tag. The value is used to perform an exact match of Auto Scaling resources. The value can be up to 128 characters in length. | TestValue |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "DE65F6B7-7566-4802-9007-96F2494A****",
"TagResources": [
{
"TagValue": "TestValue",
"ResourceType": "ALIYUN::ESS::SCALINGGROUP",
"ResourceId": "asg-bp17xb4x1vr29lgt****",
"TagKey": "TestKey",
"Propagate": false
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|