1.3. Tags

After your Red Hat Enterprise Virtualization platform is set up and configured to your requirements, you can customize the way you work with it using tags. Tags provide one key advantage to system administrators: they allow system resources to be arranged into groups or categories. This is useful when many objects exist in the virtualization environment and the administrator would like to concentrate on a specific set of them.
This section describes how to create and edit tags, assign them to hosts or virtual machines and search using the tags as criteria. Tags can be arranged in a hierarchy that matches a structure, to fit the needs of the enterprise.
Administration Portal Tags can be created, modified, and removed using the Tags pane.
To create a Tag:
  1. In tree mode or flat mode, click the Resource tab for which you wish to create a tag, for example, Hosts.
  2. Click the Tags tab. Select the node under which you wish to create the tag. For example, to create it at the highest level, click the root node. The New button is enabled.
  3. Click New at the top of the Tags pane. The New Tag dialog box displays.
  4. Enter the Name and Description of the new tag.
  5. Click OK. The new tag is created and displays on the Tags tab.
To modify a Tag:
  1. Click the Tags tab. Select the tag that you wish to modify. The buttons on the Tags tab are enabled.
  2. Click Edit on the Tags pane. The Edit Tag dialog box displays.
  3. You can change the Name and Description of the tag.
  4. Click OK. The changes in the tag display on the Tags tab.
To delete a Tag:
  1. Click the Tags tab. The list of tags will display.
  2. Select the Tag(s) to be deleted. The Remove Tag(s) dialog box displays.
  3. The tag, or list of tags are displayed in the dialog box. Check that you are sure about the removal. The message warns you that removing the tag will also remove all descendants of the tag.
  4. Click OK. The new tag is removed and no longer displays on the Tags tab. The tag is also removed from all the objects that it was attached to.
Tags can be attached to Hosts and Virtual Machines only.
To add or remove a Tag to/from one or more object instances:
  1. Search for the object(s) that you wish to tag/untag so that they are among the objects displayed in the results list.
  2. Select one or more objects on the results list.
  3. Click the Assign Tags button on the tool bar or right-click menu option.
  4. A dialog box provides a list of Tags. Select the check box to assign a tag to the object. Or, deselect the check box to detach the tag from the object.
  5. Click OK. The specified tag is now added/removed as a custom property of the selected object(s).
A user-defined tag can be a property of any object (for example, a virtual server or a host), and a search can be conducted to find it.
To search for objects using Tags:
  • Follow the search instructions in Section 1.2, “Search” , and enter a search query using “tag” as the property and the desired value or set of values as criteria for the search.
    The objects tagged with the tag criteria that you specified are listed in the results list.