Detaches tags from PolarDB clusters.
Debugging
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 available regions.
|
ResourceId.N | RepeatList | Yes | pc-*************** |
The ID of the cluster from which you want to detach tags. 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 tag key. 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.