Cluster tags

更新时间:
复制 MD 格式

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

  1. Log on to the PolarDB console. In the left-side navigation pane, click Clusters, select the region of the target cluster.

  2. Hover over the 图标 icon in the Tag column of the target cluster and click Bind.

  3. In the Modify Tags dialog box, enter a tag key and tag value, and then click OK.

    Note

    After you create a tag, you can bind it to other clusters.

Filter clusters by tag

  1. Log on to the PolarDB console. In the left-side navigation pane, click cluster list and select a region.

  2. 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 tagKey1 and the value tagValue, to filter the clusters.

View bound tags

  1. Log on to the PolarDB console. In the left-side navigation pane, click Clusters, select the region of the target cluster.

  2. In the Tag column for the target cluster, hover over the 图标 icon to view the bound key-value pairs (in tagKey : tagValue format). Click the Edit link next to a tag to modify it.

Unbind tags

  1. Log on to the PolarDB console. In the left-side navigation pane, click Clusters, select the region of the target cluster.

  2. 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.

  3. In the Modify Tags dialog box, click the image.png icon next to the tag you want to remove.

    Note

    Unbinding a tag from one cluster does not affect other clusters that have the same tag.

Related APIs

API

Description

ListTagResources

Query the list of tags bound to one or more PolarDB clusters, or the list of PolarDB clusters bound to one or more tags.

TagResources

Binds tags to PolarDB clusters.

UntagResources

Unbinds tags from PolarDB clusters.