Updated on 2025-09-15 GMT+08:00

Adding a Tag to a Dedicated HSM Instance

You can use tags to identify Dedicated HSM instances. Tags can be added to Dedicated HSM instances to facilitate instance classification and query.

Adding a Tag to a Dedicated HSM Instance

  1. Log in to the DEW console.
  2. Click in the upper left corner and select a region or project.
  3. Click . Choose Security > Data Encryption Workshop.
  4. In the navigation pane on the left, choose Dedicated HSM.
  5. Locate the target instance and click Manage Tag in the Operation column. The tag management dialog box is displayed, as shown in Figure 1.

    Figure 1 Managing tags

  6. Click Add Tag. In the displayed dialog box, enter the tag key and tag value. For details about the parameters, see Table 1.

    Figure 2 Adding a tag

    • If you want to use the same tag to identify multiple cloud resources, you can create predefined tags in the TMS. In this way, the same tag can be selected for all services. For more information about predefined tags, see the Tag Management Service User Guide.
    • To delete a tag, click Delete next to it.
    Table 1 Tag parameters

    Parameter

    Description

    Remarks

    Tag key

    Tag name.

    The tag keys of a secret cannot have duplicate values. A tag key can be used for multiple secrets.

    A secret can have up to 20 tags.

    • Mandatory.
    • The tag key must be unique for the same custom key.
    • 128 characters limit.
    • The value cannot start or end with a space.
    • Cannot start with _sys_.
    • The following character types are allowed:
      • Chinese
      • English
      • Numbers
      • Space
      • Special characters: _.:/=+-@

    Tag value

    Value of the tag

    • Optional
    • 255 characters limit.
    • The following character types are allowed:
      • Chinese
      • English
      • Numbers
      • Space
      • Special characters: _.:/=+-@

  7. Click OK.

Modifying a Tag Value

  1. In the navigation pane on the left, choose Dedicated HSM.
  2. Locate the target instance and click Manage Tag in the Operation column. The Manage Tag dialog box is displayed.
  3. Click Edit. The Edit Tag dialog box is displayed. After changing the tag value, click OK.

Deleting a Tag

  1. In the navigation pane on the left, choose Dedicated HSM.
  2. Locate the target instance and click Manage Tag in the Operation column. The Manage Tag dialog box is displayed.
  3. Locate the target tag and click Delete in the Operation column.

    Figure 3 Deleting a tag

  4. In the Delete Tag dialog box, click Yes.