Tag Management

Overview

Tags serve as markers for resources. You can assign different tag definitions based on various business needs and purposes. By customizing and attaching tags to resources, you can quickly filter out the required resources and improve search efficiency.

User Permissions

Tags are divided into admin tags and user tags, and you can determine their type by the owner.
  • Admin Tags: Created by the admin and owned by the admin.
  • User Tags: Created by regular users and owned by regular users.
Note: Changing the owner of a tag is not supported.

Admin can detach or delete tags created by regular users. When the ownership of a resource changes, all user tags on it will automatically be detached, while admin tags remain unaffected.

Resources That Support Tagging

Resource Supports Tagging Supports Tagging at Creation
Host Yes Yes
Virtual Machine Yes Yes
Bare Metal Instance Yes No

Tag Limitations

  • Tags must be unique. Users with the same role can create only one tag with the same name and color.
  • Tag names must not exceed 20 characters in length.
  • You can attach admin tags to hosts, virtual machines, and bare metal instances.
  • You can attach user tags to virtual machines.

Create a Tag

Create simple, minimalistic tags with different colors.

Procedure

  1. In the navigation pane, choose O&M Management > Tag.
  2. On the Tag page, click New Tag.
  3. In the New Tag dialog, set the following parameters:
    • Tag Preview: Displays how your tag will appear.
    • Name: Enter a name for the tag.
      Note:
      • Tags must be unique. Users with the same role can create only one tag with the same name and color.
      • Tag names must not exceed 20 characters in length.
    • Description: Optional. Enter tag details.
    • Color: Select a tag color.
  4. Review the configuration and click OK.

Attach/Detach a Tag

After you create tags, you can attach them to resources or detach them from resources.

Procedure

  1. (Optional) Attach/detach tags from the resource perspective.
    1. In the navigation pane, choose Inventory > VM and Host/Bare Metal Management.
    2. Select a target host/virtual machine/bare metal instance from the resource tree.
    3. On the resource details page, click Actions > Tag and Attribute > Tag Management.
    4. In the Tag Management dialog, add or remove tags as needed.
    5. Click OK.
  2. (Optional) Attach/detach tags from the tag perspective.
    1. In the navigation pane, choose O&M Management > Tag.
    2. On the Tag page, click the name of a tag to enter its details page.
    3. Click the Associated Resource tab.
    4. On the Associated Resource tab, select resources to attach/detach, and then click Attach/Detach.

Delete a Tag

Procedure

  1. In the navigation pane, choose O&M Management > Tag.
  2. On the Tag page, select tags to delete.
  3. Click Actions > Delete.
  4. To confirm the operation, click OK.

Search Resources Using Tags

This section introduces how to quickly filter target virtual machines using tags.

Procedure

  1. In the navigation pane, choose Inventory > VM and Host.
  2. Select a host from the resource tree.
  3. On the details page of the selected host, click Virtual Machine tab.
  4. On the Virtual Machine tab, click Tag.
  5. From the drop-down menu, select tags.
    • Tags are categorized as admin tags and user tags.
    • You can search for specific tags by entering the tag name.
  6. Click OK.