Overview
Tag is a key-value pair provided by Tencent Cloud to identify a resource in the cloud. It can help you easily categorize and manage TDMQ for CMQ resources in many dimensions such as business, purpose, and owner.
Note:
Tencent Cloud will not use the tags you set, and they are only used for your management of TDMQ for CMQ resources.
Use Limits
You need to pay attention to the following use limits of tags:
|
| One Tencent Cloud resource can have up to 50 tags. |
| You cannot place qcloud , tencent , or project at the beginning of a tag key as they are reserved by the system. A tag key can contain up to 255 digits, letters, and special symbols (+=.@- ). |
| It can contain up to 127 digits, letters, and special symbols (+=.@- ) or be an empty string. |
Directions and Use Cases
Use case
A company has 6 TDMQ for CMQ queues, with the department, business scope, and owner information as described below:
You can add the following three tags to the cmqq-372ovdpw8ob1
queue:
|
dept | ecommerce |
business | mkt |
owner | zhangsan |
Similarly, you can also set appropriate tags for other resources based on their department, business scope, and owner information.
Setting tag in TDMQ for CMQ console
After designing the tag keys and values as detailed above, you can log in to the TDMQ for CMQ console to set tags.
2. On the Queue Service page, select the target region and queue and click Edit Resource Tag at the top of the page.
3. Set tags in the Edit Tag pop-up window.
For example, add three tags for the cmqq-372ovdpw8ob1
queue.
Note:
If existing tags cannot meet your needs, go to Tag Management to create more. 4. Click OK, and you will be prompted that the tags have been modified successfully. You can view the tags bound to a queue in its Resource Tag column.
Filtering resource by tag key
You can filter out queues bound to a specific tag in the following steps:
1. Select Tag in the search box at the top-right corner of the Queue Service page. 2. In the window that pops up, select the tag you want to search for and click OK.
For example, if you select Tag: owner:zhangsan
, you can filter out queues bound to the tag key owner:zhangsan
.
Was this page helpful?