• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. User Guide
  4. Tags

Tags

A tag identifies an ECS. Adding tags to an ECS facilitates ECS identification and management.

You can add a tag to an ECS during the ECS creation or after the ECS creation (Tags tab on the page providing details about the ECS). Up to 10 tags can be added to an ECS.

NOTE:

Tags added during ECS creation will also be added to the created EIP and EVS disks (including the system disk and data disks) of the ECS. If the ECS uses an existing EIP, the tags will not be added to the EIP.

After creating the ECS, you can view the tags on the pages providing details about the ECS, EIP, and EVS disks.

A tag consists of a tag key and a tag value. Table 1 lists the tag key and value requirements.

Table 1 Tag key and value requirements

Parameter

Requirement

Example Value

Key

  • Cannot be left blank.
  • The key value must be unique for an ECS.
  • Can contain a maximum of 36 characters.
  • Can only consist of digits, letters, hyphens (-), and underscores (_).

Organization

Value

  • Can contain a maximum of 43 characters.
  • Can only consist of digits, letters, hyphens (-), and underscores (_).

Apache

Based on tags, you can perform the following operations:

  • On the Elastic Cloud Server page, search for ECSs by tag key and value.
    1. Log in to the management console.
    2. Click in the upper left corner and select the desired region and project.
    3. Under Computing, click Elastic Cloud Server.
    4. Click Search by Tag above the upper right corner of the ECS list to expand the search area, as shown in Figure 1.
      Figure 1 Searching for ECSs by tag
    5. Enter the tag of the ECS to be searched for.

      Neither the tag key nor value can be empty. When the tag key or value is matched, the system automatically shows the target ECSs.

    6. Click to add a tag.

      The system supports multiple tags and uses the intersection set of all tags to search for ECSs.

    7. Click Search.

      The system searches for ECSs based on tag keys and values.

  • On the Tags tab of an ECS, add, delete, modify, or view tags.
    1. Log in to the management console.
    2. Click in the upper left corner and select the desired region and project.
    3. Under Computing, click Elastic Cloud Server.
    4. On the Elastic Cloud Server page, click the name of the target ECS.

      The page providing details about the ECS is displayed.

    5. Click the Tags tab and perform desired operations.
      • View tags.

        You can view details of ECS tags, including the number of tags and the key and value of each tag.

      • Add a tag.

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

      • Modify a tag.

        Locate the row containing the tag to be edited and click Edit in the Operation column. In the Edit Tag dialog box, change the key and value of the tag and click OK.

      • Delete a tag.

        Locate the row containing the tag to be deleted and click Delete in the Operation column. In the Delete Tag dialog box, click OK.