• Key Management Service

  1. Help Center
  2. Key Management Service
  3. User Guide
  4. Management
  5. Managing Tags
  6. Adding a Tag

Adding a Tag


Tags are used to identify CMKs. You can add tags to CMKs so that you can classify CMKs, trace them, and collect their usage status according to the tags.

KMS does not support adding tags to Default Master Keys.


You have obtained an account and its password for logging in to the management console.


  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Choose Security > Key Management Service. The Key Management Service page is displayed.
  4. Click the alias of the desired CMK to view its details.
  5. Click Tags to go to the tag management page, as shown in Figure 1.

    Figure 1 Managing tags

  6. Click Add Tag. A dialog box is displayed, as shown in Figure 2.

    Figure 2 Adding a tag

    If you want to delete a tag to be added when adding multiple tags, you can click Delete in the row where the tag to be added is located to delete the tag.

  7. In the Add Tag dialog box, enter the tag key and tag value. Table 1 describes the parameters.

    Table 1 Tag parameters




    Example Value

    Tag key

    Name of a tag.

    The same tag (including tag key and tag value) can be used for different CMKs. However, under the same CMK, one tag key can have only one tag value.

    A maximum of 10 tags can be added for one CMK.

    • Mandatory.
    • Each tag key must be unique under the same CMK.
    • Contains a maximum of 36 characters.
    • Only digits, letters, underscores (_), and hyphens (-) are allowed.


    Tag value

    Value of the tag

    • This parameter can be empty.
    • Can contain a maximum of 43 characters.
    • Only digits, letters, underscores (_), and hyphens (-) are allowed.


  8. Click OK to complete.