Updated on 2024-12-02 GMT+08:00

Managing Tags

Tags are cluster identifiers. Adding tags to clusters can help you identify and manage your cluster resources.

You can add tags to a cluster when creating the cluster or add them on the details page of the created cluster.

Managing Tags of a New Cluster

  1. Log in to the CSS management console.
  2. Click Create Cluster in the upper right corner. The Create Cluster page is displayed.
  3. On the Create Cluster page, set Advanced Settings to Custom. Add tags for a cluster.

    You can select a predefined tag and set Tag value for the tag. You can click View Predefined Tag to switch to the TMS management console and view existing tags.

    You can also create new tags by specifying Tag key and Tag value.

    You can add a maximum of 20 tags for a CSS cluster. If the entered tag is incorrect, you can click Delete on the right of the tag to delete the tag.

    Table 1 Naming rules for a tag key and value

    Parameter

    Description

    Tag key

    Must be unique in a cluster.

    The value cannot contain more than 64 characters.

    It can contain only numbers, letters, and the following special characters: _.:=+-@ The value cannot start or end with a space.

    Cannot be left blank.

    Tag value

    The value cannot contain more than 64 characters.

    It can contain only numbers, letters, and the following special characters: _.:=+-@ The value cannot start or end with a space.

    Cannot be left blank.

Managing Tags of Existing Clusters

You can modify, delete, or add tags for a cluster.

  1. Log in to the CSS management console.
  2. On the Clusters page, click the name of a cluster for which you want to manage tags.

    The Basic Information page is displayed.

  3. In the navigation pane on the left, choose the Tags tab. You can add, modify, or delete tags.
    • View

      On the Tags page, you can view details about tags of the cluster, including the number of tags and the key and value of each tag.

    • Add

      Click Add in the upper left corner. In the displayed Add Tag dialog box, enter the key and value of the tag to be added, and click OK.

    • Modify

      You can only change the value of an existing tag.

      In the Operation column of a tag, click Edit. In the displayed Edit Tag page, enter a new tag value and click OK.

    • Delete

      In the Operation column of a tag, click Delete. After confirmation, click Yes on the displayed Delete Tag page.

Searching for Clusters by Tag

  1. Log in to the CSS management console.
  2. On the Clusters page, click the search box above the cluster list and select tag keys and values to search for clusters.

    You can select a tag key or tag value from their drop-down lists. The system returns a list of clusters that exactly match the tag key or tag value. If you enter multiple tags, the cluster that meets requirements of all the tags will be filtered.

    You can add a maximum of 10 tags at one time.