Queries tags added to Auto Scaling resources for resource categorization and permission management.
Operation description
-
Specify at least one of the following parameters:
ResourceIdsorTags(Tags.KeyandTags.Value). -
If you specify both
ResourceIdsandTags, only resources that match both criteria are returned.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:ListTagResources |
get |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. Call DescribeRegions to query available regions. |
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 |
array<object> |
No |
Details of the tags. |
|
|
object |
No |
Details of the tags. |
||
| Key |
string |
No |
The tag key for exact matching. Must be 1 to 128 characters.
|
TestKey |
| Value |
string |
No |
The tag value for exact matching. Can be up to 128 characters. |
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| NextToken |
string |
The token that determines the start point of the next query. |
caeba0bbb2be03f84eb48b699f0a4883 |
| RequestId |
string |
The ID of the request. |
DE65F6B7-7566-4802-9007-96F2494A**** |
| TagResources |
array<object> |
The resource and tag details, including resource ID, resource type, tag key, and tag value. |
|
|
object |
The resource and tag details. |
||
| TagValue |
string |
The tag value of the resource. |
TestValue |
| ResourceType |
string |
The resource type. |
ALIYUN::ESS::SCALINGGROUP |
| ResourceId |
string |
The resource ID. |
asg-bp17xb4x1vr29lgt**** |
| TagKey |
string |
The tag key of the resource. |
TestKey |
| Propagate |
boolean |
Whether the scaling group tags propagate to instances. Valid values:
|
false |
Examples
Success response
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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.