You can call this operation to remove a tag from a specified resource. 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-hangzhou

The ID of the region.

ResourceId.N RepeatList Yes bds-bp15e022622fk0w1

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

TagKey.N RepeatList No key1

The key of tag N to be deleted. You can specify multiple tag keys. You can specify the parameter names in the format of TagKey.2, TagKey.3, ... N is a positive integer.

All Boolean No true

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

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-hangzhou
&ResourceId.1=bds-bp15e022622fk0w1&TagKey.1=key1
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

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