Updated on 2026-04-10 GMT+08:00

Configuring DCS Instance Tags

Tags facilitate DCS instance identification and management. Tags can be added in instance creation, or added or deleted for an instance later.

If your organization has configured tag policies for DCS, add tags to DCS instances based on the tag policies. If a tag does not comply with the policies, tag addition may fail. Contact your organization administrator to learn more about tag policies.

Notes and Constraints

A maximum of 20 tags are allowed for a DCS instance.

Tag Key and Value Requirements

A tag consists of a tag key and tag value. Table 1 describes the naming rules for them.

Table 1 Tag key and value requirements

Parameter

Requirements

Tag key

  • Cannot be left blank.
  • Must be unique for the same instance.
  • Consists of a maximum of 128 characters.
  • Can contain letters of any language, digits, spaces, and special characters _ . : = + - @
  • Cannot start or end with a space.
  • Cannot start with _sys_.

Tag value

  • Consists of a maximum of 255 characters.
  • Can contain letters of any language, digits, spaces, and special characters _ . : / = + - @
  • Cannot start or end with a space.
  • Can be left blank.

Configuring Instance Tags

  1. Log in to the DCS console.
  2. Click in the upper left corner of the management console and select the region where your instance is located.
  3. In the navigation pane, choose Cache Manager.
  4. On the Cache Manager page, click a DCS instance name to go to the instance overview page.
  5. Choose Instance Configuration > Tags.
  6. Click Edit Tag. Perform the following operations as required:

    • Adding a tag

      Click Add, enter a tag key and a tag value, and click OK.

      If you have created predefined tags, select a predefined pair of tag key and value. To view or create predefined tags, click Create predefined tags. Then you will be directed to the TMS console.

    • Modifying a tag

      Modify the tag key and value, and click OK.

    • Deleting a tag

      Click Delete next to the tag and OK.

Filtering DCS Instances by Tag

  1. Log in to the DCS console.
  2. Click in the upper left corner of the management console and select the region where your instance is located.
  3. In the navigation pane, choose Cache Manager.
  4. Select resource tag keys and tag values in the filter bar above the instance list. If the tag column is not displayed in the instance list, click the setting icon on the right of the filter bar to customize the columns to be displayed.

    One or more tags can be filtered. When multiple tags are filtered, they all apply.

    Figure 1 Filtering DCS instances by tag

Related Documents

To create instance tags by calling an API, see the following documents: