Overview
Tags are key-value pairs provided by Tencent Cloud for easy resource identification. You can use tags to categorize and manage your CVM resources.
Tencent Cloud will not use your tags, they are solely used by you to manage your CVM resources.
Usage Limits
Note the following limits when using tags:
Quantity limits: each Tencent Cloud resource allows up to 50 tags.
Tag key limits:
Tag keys cannot start with qcloud
, tencent
, or project
.
A tag key can contain up to 255 characters, including numbers, letters, and +=.@-
.
Tag value limits: a tag value can contain up to 127 characters, including numbers, letters and +=.@-
. It can be left empty if necessary.
Directions and Use Cases
Use case
A company has purchased six CVM instances, of which the business group, scope and owners are as follows:
Taking ins-abcdef1 as an example, we can add the following 3 sets of tags to the instance:
|
dept | ecommerce |
business | mkt |
owner | John Smith |
Similarly, you can add tag key-value pairs to other instances based on the business group, scope and owners.
Setting tags in the CVM console
Take the preceding case as an example. After designing the tag key-value pairs, you can log in to the CVM console to specify the tags.
2. On the instance management page, proceed according to the actually used view mode:
Select the instance for which to edit tags and click More > Instance Settings > Edit Tags as shown below:
Select the instance for which to edit tags and click More Actions > Instance Settings > Edit Tags in the top-right corner as shown below:
3. In the You have selected 1 resource window that appears, specify the tags as required. As shown in the following figure.
For example, you can add three tag key-value pairs to the ins-abcdef1 instance.
4. Click OK. A message indicating the edit was successful will be prompted.
To filter instances by tag, follow the steps below:
1. Click the search box and select Tag from the drop-down list.
2. Enter the tag, and click to search.
You can filter instances using tags. For example, you can search instances that are bound with tags key1
or key2
by entering Tag: key1|key2
in the search box.
Was this page helpful?