UntagResources - Remove tags from resources

更新时间: 2026-05-15 19:28:34

Removes tags from resources.

Debugging

You can run this operation directly in OpenAPI Explorer without manually calculating a signature. After the call succeeds, OpenAPI Explorer automatically generates SDK sample code.

Authorization

The following table describes the authorization information for this operation. To grant a RAM user or a RAM role the permission to call this operation, add this information to the Action element of a policy statement. The columns in the table are described as follows:

  • Operation: The specific permission.

  • Access level: The access level of the operation, which can be Write, Read, or List.

  • Resource type: The type of resource that this operation is authorized to access. The following descriptions apply:

    • Required resource types are highlighted.

    • If an operation does not support resource-level authorization, this column shows all resources.

  • Condition key: The condition keys defined by the cloud service.

  • Associated operation: Other permissions that are required for the operation to succeed.

Actions

Access level

Resource type

Condition key

Associated operation

alikafka:UntagResources

Write

all resources

*

None

None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The ID of the resource's region.

cn-hangzhou

ResourceType

string

Yes

The resource type. Valid values:

  • INSTANCE

  • TOPIC

  • CONSUMERGROUP

Note

This parameter is not case-sensitive.

INSTANCE

All

boolean

No

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

false

ResourceId

array

Yes

The IDs of the resources from which you want to remove tags.

string

Yes

Resource ID formats:

  • Instance: instanceId

  • Topic: Kafka_instanceId_topic

  • Consumer group: Kafka_instanceId_consumerGroup

For an instance (alikafka_post-cn-v0h1fgs2xxxx), a topic (test-topic), and a consumer group (test-consumer-group), the corresponding resource IDs are alikafka_post-cn-v0h1fgs2xxxx, Kafka_alikafka_post-cn-v0h1fgs2xxxx_test-topic, and Kafka_alikafka_post-cn-v0h1fgs2xxxx_test-consumer-group, respectively.

alikafka_post-cn-v0h1fgs2****

TagKey

array

No

The keys of the tags to remove.

string

No

  • If you do not specify this parameter and set All to true, the operation removes all tags from the resources.

  • The tag key can be up to 128 characters long. It cannot start with aliyun or acs:, and it cannot contain http:// or https://.

FinanceDept

Response parameters

Parameter

Type

Description

Example

object

RequestId

string

The request ID.

C46FF5A8-C5F0-4024-8262-B16B6392****

Examples

Sample response

JSON format

{
  "RequestId": "C46FF5A8-C5F0-4024-8262-B16B6392****"
}

Error codes

For a list of common error codes, see Common error codes.

Change history

Date

Description

Actions

2024-08-15

Updated the OpenAPI description.

View change details

2023-11-09

Updated internal API configurations. This change does not affect your calls.

View change details

上一篇: ListTagResources - Query tags for resources 下一篇: TagResources
阿里云首页 云消息队列 Kafka 版 相关技术圈