Tags can identify resources. You can use tags to classify Message Queue for Apache Kafka resources for easy resource search and aggregation. Message Queue for Apache Kafka allows you to bind tags to or unbind tags from instances, topics, and consumer groups.

Scenarios

You can use tags to group Message Queue for Apache Kafka resources you created for easy retrieval and batch operations.

Instructions

  • Each tag consists of a key-value pair.
  • A tag must have a unique tag key.

    For example, the city:shanghai tag is bound to a Message Queue for Apache Kafka instance. If you want to bind the city:newyork tag to the instance, the city:shanghai tag is automatically unbound from the instance.

  • Tags are not shared across regions. For example, tags created in the China (Hangzhou) region are not visible to the China (Shanghai) region.
  • Tags are deleted when they are not bound to any resources.
  • For more information about how to design tag keys and values, see Best practices for tag design.

Limits

  • A maximum of 20 tags can be bound to a resource.
  • A tag can be bound to a maximum of 50 resources.
  • A maximum of 20 tags can be bound or unbound at a time.

References