All Products
Search
Document Center

Auto Scaling:UntagResources

Last Updated:May 17, 2024

Removes tags from Auto Scaling resources simultaneously. This operation streamlines resource management activities, enhances system efficiency, and mitigates potential security vulnerabilities. Once a tag is removed from a particular resource, and if it is not re-added to any other resource, the system will automatically delete the unused tag.

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

UntagResources

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

RegionId

String

Yes

cn-hangzhou

The region ID of the resource. You can call the DescribeRegions operation to query the most recent region list.

ResourceType

String

Yes

scalinggroup

The resource type. Set the value to scalinggroup.

All

Boolean

No

false

Specifies whether to remove all tags from the resource. This parameter takes effect only when you do not specify TagKey.N in the request parameters. Valid values:

  • true

  • false

Default value: false.

ResourceId.N

String

No

asg-bp17xb4x1vr29lgt****

The ID of resource N. Valid values of N: 1 to 50.

TagKey.N

String

No

TestKey

The key of tag N. Valid values of N: 1 to 20.

Response parameters

Parameter

Type

Example

Description

RequestId

String

3AEBB1B9-5B13-4311-951F-C3C7FA2B****

The request ID.

Examples

Sample requests

http(s)://ess.aliyuncs.com/?Action=UntagResources
&RegionId=cn-hangzhou
&ResourceType=scalinggroup
&All=false
&ResourceId=["asg-bp17xb4x1vr29lgt****"]
&TagKey=["TestKey"]
&<Common request parameters>

Sample success responses

XML format

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

<UntagResourcesResponse>
    <RequestId>3AEBB1B9-5B13-4311-951F-C3C7FA2B****</RequestId>
</UntagResourcesResponse>

JSON format

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

{
  "RequestId" : "3AEBB1B9-5B13-4311-951F-C3C7FA2B****"
}

Error codes

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