You can call this operation to delete tags from one or more PolarDB clusters.

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 No UntagResources

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

RegionId String Yes cn-hangzhou

The region ID of the PolarDB cluster.

Note You can call the DescribeRegions operation to query the most recent region list.
ResourceId.N RepeatList Yes pc-bp15751xxxxxxxx The ID of the Apsara PolarDB cluster from which the tags are deleted. You can delete tags for a maximum of 50 clusters in one request. The letter N specifies the sequence number of each cluster and must be unique. The values of N must be consecutive integers that start from 1. Example: pc-bp1xxx.1 and pc-bp2xxx.2.
ResourceType String Yes cluster The type of the resource. Set the value to cluster.
TagKey.N RepeatList No test1 The key of the tag. A tag is a key-value pair. You can delete up to 20 key-value pairs in one request. The letter N specifies the sequence number of each key-value pair and must be unique. The values of N must be consecutive integers that start from 1.
All Boolean No true Specifies whether to delete all tags. This parameter takes effect only if the TagKey.N parameter is not specified.

Valid values:

  • true.
  • false.

Default value: false.

Response parameters

Parameter Type Example Description
RequestId String 2D69A58F-345C-4FDE-88E4-BF5189484043

The ID of the request.

Examples

Sample request

http(s)://polardb.aliyuncs.com/?Action=UntagResources
&RegionId=cn-hangzhou
&ResourceId.1=pc-bp15751xxxxxxxx
&ResourceType=cluster
&TagKey.1=test1
&TagKey.2=test2
&<Common request parameters>

Sample success response

XML format

<UntagResourcesResponse>
      <RequestId>2D69A58F-345C-4FDE-88E4-BF5189484043</RequestId>
</UntagResourcesResponse>

JSON format

{ 
"RequestId": "2D69A58F-345C-4FDE-88E4-BF5189484043" 
}

Error codes

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