All Products
Search
Document Center

ApsaraMQ for RocketMQ:UntagResources

Last Updated:Mar 03, 2024

Detaches and removes tags from a specific resource.

Operation description

Note API operations provided by Alibaba Cloud are used to manage and query resources of Alibaba Cloud services. We recommend that you integrate these API operations only in management systems. Do not use these API operations in the core system of messaging services. Otherwise, system risks may occur.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
mq:UntagResourcesRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringNo

This parameter is required when you detach tags from a topic or a group.

MQ_INST_188077086902****_BX4jvZZG
ResourceTypestringYes

The type of the resource from which you want to detach tags. Valid values:

  • INSTANCE
  • TOPIC
  • GROUP
TOPIC
AllbooleanNo

Specifies whether to remove all tags that are attached to the specified resource. This parameter takes effect only if the TagKey parameter is empty. Default value: false.

false
ResourceIdarrayYes

The resource IDs.

stringYes

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

TopicA
TagKeyarrayNo

The tag keys of the resource.

stringNo

The tag key.

  • The tag key cannot be an empty string.
  • A tag key must be 1 to 128 characters in length and cannot contain http:// or https://. A tag key cannot start with acs: or aliyun.
CartService

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request. This parameter is a common parameter. Each request has a unique ID. You can use the ID to troubleshoot issues.

19780F2E-7841-4E0F-A5D9-C64A0530****

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history

Detach and remove tags from a resource in the console

You can also detach and remove tags from a resource in the ApsaraMQ for RocketMQ console.**** For more information, see Manage tags.