Tags can identify resources. You can use tags to classify Message Queue for Apache RocketMQ resources for easy resource search and aggregation. Message Queue for Apache RocketMQ allows you to create, edit, and delete tags for Message Queue for Apache RocketMQ instances, topics, and groups. This topic describes the instructions and limits for using tags.

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 RocketMQ instance. To bind the city:newyork tag to the instance, you need to delete the city:shanghai tag first.

  • For more information about the best practices for tag design, see Best practices for tag design.

Limits

  • A tag key must be 1 to 64 case-sensitive Unicode characters in length.
  • A tag value must be 1 to 64 case-sensitive Unicode characters in length.
  • A maximum of 20 tags can be bound to each resource.
  • A tag key cannot start with aliyun or acs:, contain http:// or https://, or be an empty string.
  • A tag value cannot contain http:// or https://. It can be an empty string.
  • Tag information is not shared across regions. For example, tags created in the China (Hangzhou) region are not visible to the China (Shanghai) region.

Operations in the Message Queue for Apache RocketMQ console

To perform tag-related operations in the Message Queue for Apache RocketMQ console, see the following topics:

Related API operations

To manage tags by calling API operations, see the following topics: