- User Guide
- Elasticsearch
- Cluster Management
- Managing Tags
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.
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.
Managing Tags of a New Cluster¶
Log in to the CSS management console.
Click Create Cluster in the upper right corner. The Create Cluster page is displayed.
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 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.
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.
Log in to the CSS management console.
On the Clusters page, click the name of a cluster for which you want to manage tags.
The Basic Information page is displayed.
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¶
Log in to the CSS management console.
On the Clusters page, click Search by Tag in the upper right corner of the cluster list.
Select or enter the tag key and tag value you want to search for, and click Add to add the tag to the search text box.
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.
Click Search.
The system searches for the target cluster by tag key and value.