You can use tags to identify resources. Tags allow enterprises and individuals to categorize their Cloud Backup resources, simplifying resource search and management. This topic describes how to use the tag feature for Elastic Compute Service (ECS) file backup.
Prerequisites
Authorization is complete and a Cloud Backup client for ECS file backup is installed. For more information, see Before you begin.
Background information
You can create different tags for ECS instances. For example, if you manage teams or projects, you can create tags by department or project and use these tags to categorize your instances. For example, you can create a tag named project:a for a project. This way, you can quickly filter ECS instances by tag during routine maintenance.
Usage notes
Each tag consists of a key-value pair.
A tag must be unique.
For example, the
company:atag has been added to a backup vault. If you add thecompany:btag to the backup vault, thecompany:atag is replaced by thecompany:btag.Tags are not shared across regions. For example, tags that are created in the China (Hangzhou) region are invisible to the China (Shanghai) region.
Limits
When you create tags, take note of the following limits.
Item | Limit |
The maximum length of a key | 128 characters |
The maximum length of a value | 128 characters |
The maximum number of custom tags that can be added to a resource | 20 |
The key of a tag |
|
The value of a tag | A tag value cannot contain |
Create tags
Log on to the Cloud Backup console.
In the left-side navigation pane, choose .
In the top navigation bar, select a region.
On the ECS File Backup page, click New Version.
Click the
icon in the Tags(Backup Clients) column of the ECS instance for which you want to create tags.If a Cloud Backup client has been installed or activated, the
icon is displayed.If a Cloud Backup client has not been installed or has been installed but not activated, the
icon is displayed.
In the dialog box that appears, click Edit.
In the Key and Value fields, enter the key-value pair of a tag and click Save.
If you want to create more than one tag, click Add a Row to specify the key-value pair of a new tag.
Search for a resource by tag
On the ECS Instances tab, select Client Tags from the drop-down list, enter the tag information, and then click Search.
You can search for a resource by using a key, as shown in the following example:
aaaYou can search for a resource by using a key-value pair, as shown in the following example:
aaa@bbbYou can search for a resource by using multiple key-value pairs, as shown in the following example:
aaa@bbb,ccc@ddd
Delete a tag
If you no longer require a tag, you can delete it. To delete a tag from an ECS instance, perform the following steps:
Log on to the Cloud Backup console.
In the left-side navigation pane, choose .
In the top navigation bar, select a region.
On the ECS File Backup page, click New Version.
Click the
icon in the Tags(Backup Clients) column of the ECS instance from which you want to delete a tag.In the dialog box that appears, click Edit.
Click the
icon on the right of the key-value pair and then click Save.