• Document Database Service

dds
  1. Help Center
  2. Document Database Service
  3. User Guide
  4. Managing DDS DB Instances
  5. Tag

Tag

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 tags. TMS manages tags globally and other cloud services manage their own tags.

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

  • 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.
  • A maximum of 10 tags can be added for a DB instance.
Table 1 Naming rules

Parameter

Requirement

Example

Tag key

  • Cannot be left blank.
  • For each DB instance, each tag key is unique.
  • Consists of a maximum of 36 characters.
  • Can only consist of digits, letters, underscores (_), and hyphens (-).

Organization

Tag value

  • Can be empty.
  • Consists of a maximum of 43 characters.
  • Can only consist of digits, letters, underscores (_), and hyphens (-).

dds_01

Adding a Tag

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click Service List. Under Database, click Document Database Service.
  4. On the Instance Management page, locate the target DB instance on the Clusters tab or the Replica Sets tab and click its name.
  5. On the Tags page, click Add Tag. In the displayed dialog box, enter a tag key and value, and click OK.
  6. After a tag has been added, you can view and manage it on the Tags page.

Editing a Tag

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click Service List. Under Database, click Document Database Service.
  4. On the Instance Management page, locate the target DB instance on the Clusters tab or the Replica Sets tab and click its name.
  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 when editing a tag.

  6. After a tag has been edited, you can view and manage it on the Tags page.

Deleting a Tag

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click Service List. Under Database, click Document Database Service.
  4. On the Instance Management page, locate the target DB instance on the Clusters tab or the Replica Sets tab and click its name.
  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. After a tag has been deleted, it will not be displayed on the Tags page.