Updated on 2024-04-19 GMT+08:00

Managing Tags

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

If your organization has enabled tag policies for CSS, you must comply with the tag policy rules when creating clusters, otherwise, clusters may fail to be created. Contact the organization administrator to learn more about tag policies.

Adding Tags to a Cluster

  1. Log in to the CSS management console.
  2. Choose Clusters > Logstash. The Logstash clusters page is displayed.
  3. Find the target cluster and click its name. The Basic Information page is displayed.
  4. Click the Tags tab and add tags to the 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 10 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. If you do not want to add tags, leave this parameter blank.

    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, Chinese characters, 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, Chinese characters, and the following special characters: _.:=+-@ The value cannot start or end with a space.

    Cannot be left blank.

Searching for Clusters by Tag

  1. Log in to the CSS management console.
  2. On the Clusters page, click Search by Tag in the upper right corner of the cluster list.
  3. Enter the target tag key and value.

    You can select a tag key and value from the drop-down lists. The system returns a list of clusters that exactly match the tag key and value. If you select multiple tags, only clusters including all of the selected tags will be returned.

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

  4. Click Search.

    The system searches for clusters based on the key and value combinations you selected.