You can call this operation to remove tags from specific resources. For more information about how to add a tag, see TagResources.

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-shenzhen

The ID of the region.

ResourceId.N RepeatList Yes cds-wz92o754****7779

The ID of resource N whose tags are to remove. Set the value to the cluster ID. You can specify multiple resource IDs. You can specify the parameter names in the format such as ResourceId.2 and ResourceId.3. N is a positive integer.

TagKey.N RepeatList No key

The key of tag N to delete. You can specify multiple tag keys. You can specify the parameter names in the format such as TagKey.2 and TagKey.3. N is a positive integer.

All Boolean No true

Specifies whether to remove all tags. If the TagKey parameter is specified, all tags related to the specified tag key are removed. Valid values: true and false. If the parameter is true and the TagKey parameter is not specified, all tags are removed.

Response parameters

Parameter Type Example Description
RequestId String 9CBF8DF0-4931-4A54-9B60-4C6E1AB59286

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=UnTagResources
&RegionId=cn-shenzhen
&ResourceId.1=cds-wz92o754****7779
&<Common request parameters>

Sample success responses

XML format

<UntagResourcesResponse>
  <RequestId>9CBF8DF0-4931-4A54-9B60-4C6E1AB59286</RequestId>
</UntagResourcesResponse>

JSON format

{"RequestId":"9CBF8DF0-4931-4A54-9B60-4C6E1AB59286"}

Error codes

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