Tags can identify and categorize cloud resources. Message Queue for Kafka supports adding tags to topics. You can classify topics through tags for easier method to identify and manage them.
The rules for setting tags are as follows:
After adding topic tags, you can edit the tag, including modifying tag key-value information, adding tags, and unbinding tags.
- Select the region where the instance is located on the top menu bar.
- On the Instances page, click the specified instance name.
- Click Topic management on the tab bar.
- On the topic list page, select the target topic, then click the edit icon under the Tags column.
- In the Edit tab dialog box, you can edit, add, or unbind tags as needed, and then click OK.
When filtering topics, if a topic is bound with tags, you can filter the topic through specified tag key and tag value. The results show all topics that are bound with the specified tag.
- Select the region where the instance is located on the top menu bar.
- On the Instances page, click the specified instance name.
- Click Topic management on the tab bar.
- On the topic list page, click the filter icon near Tag.
- In the pop-up text box, fill in the tag key and tag value, then click OK.
- The tag key is required, while the tag value is optional. If the tag value is empty, filter the topic only by the tag key.
- Supports entering up to 10 tags for filtering. Different filter conditions have an OR relationship. If any filter condition is met, match succeeds.
To add the same tag to multiple topics, use batch binding. When adding tags in batch, if a new tag key overlaps with tag keys that are already bound to the selected topics, the new tag value will overwrite the original. Proceed with caution.
- Select the region where the instance is located on the top menu bar.
- On the Instances page, click the specified instance name.
- Click Topic management on the tab bar.
- On the topic list page, select the topics that need to batch bind tags. Then click Bind tags.
- In the Bind tags dialog box, review the prompt message. Set multiple tag keys and tag values as needed, and then click OK.
If you need to remove topics for multiple tags, use bulk unbinding. When bulk unbinding tags, select the tag keys that need to unbind to proceed. All tags under the selected keys will be unbound. Proceed with caution.
- Select the region where the instance is located on the top menu bar.
- On the Instances page, click the specified instance name.
- Click Topic management on the tab bar.
- On the topic list page, select the topics that need to unbind tags in bulk. Then click Unbind tags.
- In the Unbind tags dialog box, review the information. Select tag keys that need to unbind before you click OK.