Unbinds and deletes one or more tags from a resource.

QPS limit

The queries-per-second (QPS) limit on this operation is 10 per user. Throttling is triggered when the number of calls to this operation per second exceeds the QPS limit. Throttling may affect your business. Therefore, call this operation based on your needs. For more information, see QPS limits.

Authorization information

By default, only Alibaba Cloud accounts can call this operation. RAM users can call this operation only after they are authorized to use it. The following table lists the authorization information of this operation. For more information, see Policies and examples.

API

Action

Resource

UntagResources

mq:UntagResources

acs:mq:*:*:*

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. Valid values:

  • INSTANCE
  • TOPIC
  • GROUP
InstanceId String No MQ_INST_111111111111_DOxxxxxx

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

TagKey.N RepeatList No CartService

The key of tag N that you want to unbind from the resource.

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

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

Response parameters

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

The ID of the request, which is a common parameter. Each request has a unique ID to facilitate troubleshooting and fault locating.

Examples

Sample requests

http(s)://ons.cn-hangzhou.aliyuncs.com/? Action=UntagResources
&ResourceId.1=TopicA
&ResourceType=TOPIC
&<Common request parameters>

Sample success responses

XML format

<UntagResourcesResponse>
  <RequestId>19780F2E-7841-4E0F-A5D9-C64A0530****</RequestId>
</UntagResourcesResponse>

JSON format

{"RequestId":"19780F2E-7841-4E0F-A5D9-C64A0530****"}

Error codes

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

Operations in the console

In addition to calling the UntagResources operation, you can unbind and delete tags from resources in the Message Queue for Apache RocketMQ console. For more information, see Overview.