You can call this operation to detach tags from AnalyticDB for MySQL clusters. If tags are not attached to other clusters, the tags are deleted.


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 this parameter to UntagResources.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

ResourceId.N RepeatList Yes am-bp1xxx.1

The ID of a cluster from which you want to detach tags. You can detach tags from a maximum of 50 clusters at a time. The N value that follows the ID of each cluster must be unique and must be consecutive integers that start from 1. For example, am-bp1xxx.1 and am-bp2xxx.2.

ResourceType String Yes ALIYUN::ADB::CLUSTER

The type of the cluster. Set the value to ALIYUN::ADB::CLUSTER.

TagKey.N RepeatList No a

The tag key. You can delete up to 20 key-value pairs of tags at a time. The number n in each key-value pair must be different and must be consecutive integers that start from 1.

All Boolean No false

Specifies whether to detach all tags. This parameter takes effect only when 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.


Sample requests

http(s)://[Endpoint]/? Action=UntagResources
&<Common request parameters>

Sample success responses

XML format


JSON format

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

Error codes

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