All Products
Search
Document Center

Auto Scaling:UntagResources

Last Updated:Feb 06, 2023

Removes tags from the specified Auto Scaling resources. If you remove a tag and the tag is not added to other resources, the tag is automatically deleted.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The type of the resource. Only scaling groups are supported. Set the value to scalinggroup.

cn-hangzhou
ResourceTypestringYes

Specifies whether to remove all tags from the Auto Scaling resource. This parameter takes effect only if you do not specify the TagKeys parameter. Valid values:

  • true: removes all tags from the Auto Scaling resource.
  • false: does not remove tags from the Auto Scaling resource.

Default value: false.

scalinggroup
AllbooleanNo

The IDs of the Auto Scaling resources. You can specify 1 to 50 resource IDs.

false
ResourceIdsarrayYes

The IDs of the Auto Scaling resources. You can specify 1 to 50 resource IDs.

stringNo

The keys of the tags that you want to remove from the Auto Scaling resource. You can specify 1 to 20 tag keys.

asg-bp17xb4x1vr29lgt****
TagKeysarrayNo

The keys of the tags that you want to remove from the Auto Scaling resource. You can specify 1 to 20 tag keys.

stringNo

The ID of the request.

TestKey

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

auditing

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

Example

Normal return example

JSONFormat

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

Error codes

For a list of error codes, visit the API error center.