You can call this operation to unbind tags from a specified ApsaraDB for RDS instance.

  • You can unbind up to 20 tags at a time.
  • If a tag is unbound from an instance and is not bound to any other instances, the tag will be 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 the value 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.

ResourceType String Yes INSTANCE

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

ResourceId.N RepeatList Yes rm-uf6wjk5xxxxxxx

The ID of the instance. You can bind tags to N instances at a time. Valid values of N: 1 to 50.

TagKey.N RepeatList No testkey1

The key of the tag. You can delete N keys at a time. Valid values of N: 1 to 20. It cannot be an empty string.

All Boolean No false

Specifies whether to delete all tags of the instance. Valid values:

  • true
  • false

Default value: false

Note This parameter is valid when TagKey.N is not specified.
AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

Response parameters

Parameter Type Example Description
RequestId String 601B6F25-21E7-4484-99D5-3EF2625C0088

The ID of the request.


Sample requests

 http(s):// Action=UntagResources
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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