You can call this operation to unbind tags from a specified resource. After a tag is unbound, the tag is automatically deleted if it is not bound to other resources.


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.

All Boolean Yes false

Specifies whether to unbind all tags from the resource. This parameter takes effect only when the TagKey.N parameter is not specified. Default value: false.

RegionId String Yes cn-hangzhou

The region ID of the resource.

ResourceId.N RepeatList Yes ecd-ia2zw38bi6cm7****

The ID of the resource, which is the ID of the cloud desktop. Valid values of N: 1 to 50.

ResourceType String Yes ALIYUN::GWS::INSTANCE

The type of the resource. Set the value to ALIYUN::GWS::INSTANCE.

TagKey.N RepeatList No TestKey

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

Response parameters

Parameter Type Example Description
RequestId String 3EB7FCEE-D731-4948-85A3-4B2C341CA983

The ID of the request.


Sample requests

&<Common Request Parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.