Removes tags from ApsaraMQ for Kafka resources, including instances, topics, and consumer groups.
Debugging
OpenAPI Explorer automatically calculates the signature value and generates SDK sample code. Use it to debug and test this operation.
Authorization information
The following table describes the authorization information for this API operation. Use this information in the Action policy element to grant a Resource Access Management (RAM) user or RAM role the permissions to call this operation.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| alikafka:UntagResources | update | All resources\* | None | None |
Operation: the value that you use in the
Actionelement 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 resource on which you can authorize the RAM user or RAM role to perform the operation. Required resource types are highlighted. If permissions cannot be granted at the resource level,
All resourcesis used.Condition key: the condition key defined by the Alibaba Cloud service.
Associated operation: other operations that the RAM user or RAM role must have permissions to perform to complete this operation.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID of the resource. | cn-hangzhou |
| ResourceType | string | Yes | The type of resource to untag. Valid values: INSTANCE, TOPIC, CONSUMERGROUP. This value is not case-sensitive. | INSTANCE |
| All | boolean | No | Whether to remove all tags from the resource. This parameter takes effect only when TagKey is not specified. Default value: false. | false |
| ResourceId | array of string | Yes | The resource IDs. The ID format varies by resource type:
alikafka_post-cn-v0h1fgs2xxxx, the topic test-topic, and the consumer group test-consumer-group, set the resource IDs to alikafka_post-cn-v0h1fgs2xxxx, Kafka_alikafka_post-cn-v0h1fgs2xxxx_test-topic, and Kafka_alikafka_post-cn-v0h1fgs2xxxx_test-consumer-group. | alikafka_post-cn-v0h1fgs2\*\*\*\* |
| TagKey | array of string | No | The tag keys to remove.
| FinanceDept |
Response parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| RequestId | string | The request ID. | C46FF5A8-C5F0-4024-8262-B16B6392\*\*\*\* |
Examples
Sample success responses
JSON format
{
"RequestId": "C46FF5A8-C5F0-4024-8262-B16B6392****"
}Error codes
For a list of error codes, see Common error codes.
Change history
| Date | Description | Details |
|---|---|---|
| 2024-08-15 | Updated the API operation description. | |
| 2023-11-09 | Updated internal configurations. The API behavior remains unchanged. |