Categorize clusters with tags to simplify filtering and searching, especially when you manage a large number of them.
Usage notes
-
A tag is a key-value pair that consists of a tag key and a tag value.
-
Tag keys must be unique for each cluster.
-
You can bind a maximum of 20 tags to each cluster.
-
When you unbind a tag from a cluster, the tag is automatically deleted if it is not bound to any other cluster.
Bind tags
-
Log on to the PolarDB console. In the left-side navigation pane, click Clusters, select the region of the target cluster.
-
Hover over the
icon in the Tag column of the target cluster and click Bind. -
In the Modify Tags dialog box, enter a tag key and tag value, and then click OK.
NoteAfter you create a tag, you can bind it to other clusters.
Filter clusters by tag
-
Log on to the PolarDB console. In the left-side navigation pane, click cluster list and select a region.
-
To Filter by Tag, click the Filter by Tag drop-down button in the upper-right corner of the cluster list page. In the displayed panel, use the Search by Tag Key and Search by Tag Value fields to find a tag. Select a tag key and value, such as the key
tagKey1and the valuetagValue, to filter the clusters.
View bound tags
-
Log on to the PolarDB console. In the left-side navigation pane, click Clusters, select the region of the target cluster.
-
In the Tag column for the target cluster, hover over the
icon to view the bound key-value pairs (in tagKey : tagValueformat). Click the Edit link next to a tag to modify it.
Unbind tags
-
Log on to the PolarDB console. In the left-side navigation pane, click Clusters, select the region of the target cluster.
-
In the Tag column for the target cluster, hover over the
icon, click Edit, and then click the Edit button that appears to open the Edit Tag dialog box. -
In the Modify Tags dialog box, click the
icon next to the tag you want to remove.NoteUnbinding a tag from one cluster does not affect other clusters that have the same tag.
Related APIs
|
API |
Description |
|
Query the list of tags bound to one or more PolarDB clusters, or the list of PolarDB clusters bound to one or more tags. |
|
|
Binds tags to PolarDB clusters. |
|
|
Unbinds tags from PolarDB clusters. |