Updated on 2024-10-11 GMT+08:00

Managing Tags

Scenarios

Tag Management Service (TMS) enables you to use tags on the management console to manage resources. TMS works with other cloud services to manage global tags, and other cloud services manage their own tags.

Adding tags to GeminiDB Redis instances helps you better identify and manage them. A DB instance can be tagged during or after it is created.

After a DB instance is tagged, you can search for the tag key or value to quickly query the instance details.

Precautions

  • You are advised to set predefined tags on the TMS console.
  • A tag consists of a key and value. You can add only one value for each key. For details about the naming rules of tag keys and tag values, see Table 1.
  • Each instance can have up to 20 tags by default.
  • The tag name must comply with the naming rules described in Table 1.
    Table 1 Naming rules

    Parameter

    Requirement

    Example Value

    Tag key

    • Cannot be left blank.
    • Must be unique for each instance.
    • Contains a maximum of 36 characters.
    • Can only consist of digits, letters, underscores (_), and hyphens (-).

    Organization

    Tag value

    • Can be left blank.
    • Contains a maximum of 43 characters.
    • Can only consist of digits, letters, underscores (_), periods (.), and hyphens (-).

    nosql_01

Adding a Tag

  1. Log in to the GeminiDB console.
  2. In the service list, choose Databases > GeminiDB.
  3. On the Instances page, click the instance that you want to add tags to and click its name.
  4. In the navigation pane on the left, choose Tags.
  5. On the Tags page, click Add Tag. In the displayed dialog box, enter a tag key and value, and click OK.
  6. View and manage the tag on the Tags page.

Editing a Tag

  1. Log in to the GeminiDB console.
  2. In the service list, choose Databases > GeminiDB.
  3. On the Instances page, locate the instance whose tags you want to edit and click its name.
  4. In the navigation pane on the left, choose Tags.
  5. On the Tags page, locate the tag to be edited 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.

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

Deleting a Tag

  1. Log in to the GeminiDB console.
  2. In the service list, choose Databases > GeminiDB.
  3. On the Instances page, locate the instance whose tags you want to delete and click its name.
  4. In the navigation pane on the left, choose Tags.
  5. On the Tags page, locate the tag to be deleted and click Delete in the Operation column. In the displayed dialog box, click Yes.
  6. View that the tag is no longer displayed on the Tags page.

Searching an Instance by Tag

  1. Log in to the GeminiDB console.
  2. In the service list, choose Databases > GeminiDB.
  3. On the Instances page, click Search by Tag in the upper right corner of the instance list.

    Figure 1 Search by Tag

  4. Enter a tag key or value and click Search to query the instance associated with the tag.

    Figure 2 Searching by tag key