Detaches 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 to UntagResources.

RegionId String Yes cn-hangzhou

The ID of the region.

Note You can call the DescribeRegions operation to query the most recent region list.
ResourceId.N RepeatList Yes pc-***************

The ID of the PolarDB cluster from which tags are to be detached. To detach tags from multiple clusters at a time, click the plus sign (+) icon to add cluster IDs.

Note You can detach tags from a maximum of 50 clusters at a time.
ResourceType String Yes cluster

The type of the resource. Set the value to cluster.

TagKey.N RepeatList No type

The key of the tag. To detach multiple tags from a cluster at a time, click the plus sign (+) icon to add tag keys.

Note You can add up to 20 tag keys at a time.
All Boolean No true

Specifies whether to detach all the tags from the cluster. Valid values: true or false. Default value: false.

Note This parameter only takes effect when the value of the TagKey.N parameter is empty.

Response parameters

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

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

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

JSON format

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

Error codes

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