Unbinds and deletes tags from a resource.


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.

ResourceId.N RepeatList Yes TopicA

The ID of the resource from which you want to unbind tags.

ResourceType String Yes TOPIC

The type of the resource. The value is an enumerated value. Valid values:

InstanceId String No MQ_INST_111111111111_DOxxxxxx

To unbind tags from a topic or group ID, you must specify this parameter.

TagKey.N RepeatList No CartService

The key of tag N to be unbound from the resource.

  • Valid values of N: 1 to 20.
  • The tag key cannot be an empty string.
  • The tag key can be up to 128 characters in length. It cannot start with aliyun or acs: and cannot contain http:// or https://.
All Boolean No false

Specifies whether to delete all the tags bound to the resource. This parameter only takes effect when the TagKey.N parameter is not specified. Default value: false.

Response parameters

Parameter Type Example Description
RequestId String 19780F2E-7841-4E0F-A5D9-C64A05301A2F

The ID of the request. This is a common parameter.


Sample requests

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

Sample success responses

XML format


JSON format