Unbinds tags from ApsaraDB for Redis instances.

  • You can unbind up to 20 tags at a time.
  • If a tag is not bound to any instances after you unbind the tag from an instance, the tag is deleted.

You can also unbind tags from instances in the console. For more information, see Unbind a tag.


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 ID of the region where the instance is deployed. You can call the DescribeRegions operation to query IDs of available regions.

ResourceId.N RepeatList Yes r-bp1zxszhcgatnx****

The ID of the instance.

Note N specifies the serial number of the instance. For example, ResourceId.1 specifies the ID of the first instance and ResourceId.2 specifies the ID of the second instance.
ResourceType String Yes INSTANCE

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

TagKey.N RepeatList No demokey

The key of the tag.

Note N specifies the serial number of the tag. For example, TagKey.1 specifies the key of the first tag and TagKey.2 specifies the key of the second tag.
All Boolean No false

Specifies whether to unbind all tags from the instance. Valid values:

  • true: unbinds all tags from the instance.
  • false: does not unbind all tags from the instance.
Note If you specify both this parameter and TagKey.N, this parameter is invalid.

Response parameters

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

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

	"RequestId": "601B6F25-21E7-4484-99D5-3EF2625C****"

Error codes

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