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

Usage notes

  • Each tag consists of a key-value pair.
  • Each tag key must be unique within a resource.

    For example, the city:shanghai tag is attached to a Message Queue for Apache RocketMQ instance. To attach the city:newyork tag to the instance, you must delete the city:shanghai tag.

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

Limits

  • Each tag key must be 1 to 64 case-sensitive Unicode characters in length.
  • Each tag value must be 1 to 64 case-sensitive Unicode characters in length.
  • A maximum of 20 tags can be attached 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 invisible in the China (Shanghai) region.

Operations in the console

To manage tags 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: