1.5. Tags
1.5.1. Using Tags to Customize Interactions with Red Hat Virtualization
After your Red Hat Virtualization platform is set up and configured to your requirements, you can customize the way you work with it using tags. Tags allow system resources to be arranged into groups or categories. This is useful when many objects exist in the virtualization environment and the administrator wants 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.
To create, modify, and remove Administration Portal tags, click the Tags icon ( ) in the header bar.
1.5.2. Creating a Tag
Create tags so you can filter search results using tags.
Procedure
- Click the Tags icon ( ) in the header bar.
- Click Add to create a new tag, or select a tag and click New to create a descendant tag.
- Enter the Name and Description of the new tag.
- Click .
1.5.3. Modifying a Tag
You can edit the name and description of a tag.
Modifying a Tag
- Click the Tags icon ( ) in the header bar.
- Select the tag you want to modify and click Edit.
- Change the Name and Description fields as necessary.
- Click .
1.5.4. Deleting a Tag
When a tag is no longer needed, remove it.
Procedure
- Click the Tags icon ( ) in the header bar.
- Select the tag you want to delete and click Remove. A message warns you that removing the tag will also remove all descendants of the tag.
- Click .
You have removed the tag and all its descendants. The tag is also removed from all the objects that it was attached to.
1.5.5. Adding and Removing Tags to and from Objects
You can assign tags to and remove tags from hosts, virtual machines, and users.
Procedure
- Select the object(s) you want to tag or untag.
- Click More Actions ( ), then click Assign Tags.
- Select the check box to assign a tag to the object, or clear the check box to detach the tag from the object.
- Click .
The specified tag is now added or removed as a custom property of the selected object(s).
1.5.6. Searching for Objects Using Tags
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 specified criteria are listed in the results list.
If you search for objects using tag
as the property and the inequality operator (!=
), for example, Host: Vms.tag!=server1
, the results list does not include untagged objects.
1.5.7. Customizing Hosts with Tags
You can use tags to store information about your hosts. You can then search for hosts based on tags. For more information on searches, see Searches.
Procedure
-
Click
and select a host. - Click More Actions ( ), then click Assign Tags.
- Select the check boxes of applicable tags.
- Click .
You have added extra, searchable information about your host as tags.