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

Note
  • 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 is automatically deleted.

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 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 No rm-uf6wjk5xxxxxxx

The ID of Instance N. 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 Tag N. 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.

Examples

Sample requests


http(s)://rds.aliyuncs.com/? Action=UntagResources
&RegionId=cn-hangzhou
&ResourceType=INSTANCE
&ResourceId.1=rm-uf6wjk5xxxxxxx
&TagKey.1=testkey1
&<Common request parameters>

Sample success responses

XML format

<UntagResourcesResponse>
        <RequestId>601B6F25-21E7-4484-99D5-3EF2625C0088</RequestId>
</UntagResourcesResponse>

JSON format

{
	"RequestId":"601B6F25-21E7-4484-99D5-3EF2625C0088"
}

Error codes

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