If you have a large number of instances, you can create multiple tags and add different tags to different instances to classify and filter instances by tag.
Precautions
A tag consists of a key-value pair. Each key must be unique for an Alibaba Cloud account in a region. This constraint does not apply to key values.
NoteA key can have zero to multiple values.
You can edit tags for a maximum of 50 instances at a time.
You can add up to 20 tags to an instance.
You can add or remove up to 20 tags at a time.
Create tags
Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides.
Perform one of the following steps to create tags for one or more instances:
Create tags for a single instance
In the Tag column corresponding to the instance that you want to manage, click the icon.
Create tags for multiple instances
Select the instances and click Edit Tags below the instance list.
In the dialog box that appears, specify tag keys and tag values.
NoteYou can select an existing tag to add the tag to the instance.
In the lower-right corner of the dialog box, click OK.
Filter instances by tag
Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides.
On the Instances page, click the tag filter and select the desired tag key and tag value.
NoteAfter you create a tag or update an existing tag, you must refresh the page to view the updated tag list.
Click Search.
Add or remove tags
Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides.
In the Tag column corresponding to the instance that you want to manage, click the icon and click Edit.
In the dialog box that appears, click the icon next to the tag that you want to remove.
NoteYou can remove up to 20 tags at a time.
If you remove a tag from all instances to which the tag is added, the tag is automatically deleted.
An instance keeps running when you remove tags from the instance. After all tags of an instance are removed, the instance cannot be filtered by tag.
Click OK.
Related API operations
API operation | Description |
Adds tags to one or more ApsaraDB for Tair instances. | |
Queries the relationships between ApsaraDB for Tair instances and tags. | |
Removes tags from one or more ApsaraDB for Tair instances. |