Updated on 2024-07-30 GMT+08:00

Tags

Tag Management Service (TMS) enables you to use tags on the console to manage resources. TMS works with other cloud services to manage tags. TMS manages tags globally. Other cloud services manage only their own tags.

Precautions

  • A tag consists of a key and value. You can add only one value for each key.
  • Each instance can have up to 10 tags.

Adding a Tag

  1. Log in to the DDM console.
  2. On the Instances page, locate the required instance and click its name.
  3. In the navigation pane on the left, choose Tags. On the displayed page, click Add Tag.
  4. In the displayed dialog box, enter a tag key and value and click OK.

    Figure 1 Adding a tag

    The tag key and value must comply with the following rules.

    Table 1 Parameter description

    Parameter

    Description

    Tag key

    This parameter is mandatory and cannot be null. The key:

    • Must be unique for each instance.
    • Can include 1 to 36 characters.
    • Cannot be an empty string or start with _sys_, and cannot start or end with a space.
    • Cannot contain:

      Non-printable ASCII characters (0-31), "*", "<", ">", "\", ",", "|", "/"

    Tag value

    This parameter is mandatory. The key value:
    • Is an empty string by default.
    • Can contain 0 to 43 characters.
    • Cannot contain:

      Non-printable ASCII characters (0-31), "*", "<", ">", "\", ",", "|"

  5. View and manage the tag on the Tags page.

Editing a Tag

  1. Log in to the DDM console.
  2. On the Instances page, locate the required instance and click its name.
  3. In the navigation pane on the left, choose Tags, and click Edit in the Operation column. In the displayed dialog box, change the tag value and click OK.

    Only the tag value can be edited.

  4. View and manage tags on the Tags page.

Deleting a Tag

  1. Log in to the DDM console.
  2. On the Instances page, locate the required instance and click its name.
  3. In the navigation pane on the left, choose Tags, and click Delete in the Operation column. In the displayed dialog box, click OK.
  4. Verify that the tag is no longer displayed on the Tags page.

Searching for Instances by Tag

After tags are added, you can search for instances by tag to quickly find specific types of instances.

  1. Log in to the DDM console.
  2. On the Instances page, click Search by Tag in the upper right corner of the instance list.

    Figure 2 Searching by tag

  3. Enter a tag key and a tag value and click Search.
  4. View the instance found.