Use tags
Tags are used to mark resources. You can use tags to categorize Cloud Backup resources that have the same purpose. This simplifies searching and resource aggregation. This topic describes the tag feature for ECS File Backup.
Prerequisites
Authorization is completed in Resource Access Management (RAM) and an ECS file backup client is installed. For more information, see Before you begin.
Background information
You can create different tags for different ECS instances. For example, if you manage teams or projects, you can create tags based on 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 filter ECS instances based on the tag when you maintain ECS instances.
Usage notes
Each tag consists of a key-value pair.
A tag must be unique.
For example, the
company:atag is added to a backup vault. If you add thecompany:btag to the backup vault, the company:a tag is replaced with 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 you can add to a resource | 20 |
The key of a tag |
|
The value of a tag | A tag value cannot contain |
Set 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 Old Version.
In the Tags column of the target ECS instance, click the
tag icon.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 resources by tag
On the right side of the ECS Instances tab, select Client Tags as the filter condition, enter the tag information, and 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