Page tree
Skip to end of metadata
Go to start of metadata

Overview

Tags allow you to attach metadata to objects in the vSphere inventory to make these objects more sortable and searchable. There are Categories and Tags in vSphere inventory. We use Categories to group tags together and define how tags can be applied to objects.  And we use Tags to add metadata to inventory objects. We can also record information about your inventory objects in tags and use the tags in searches.

Each Category has cardinality attribute, which can be SINGLE or MULTIPLE. It allows assigning one or multiple Tags per Category.

In Discovery UI vSphere Tags will be displayed as following:

 <tag_name> := <tag_value> or

 <tag_name> := [<tag_value1>,<tag_value2>, <tag_value3>] or 

<tag_name> := [<tag_value1>]  

Where tag_name stands for Category name and tag_value stands for Tag name.

Credentials

In order to discover vSphere Tags,  vCenter and vSphere Web API with token authentication credential types should be enabled on your Discovery appliance. One and the same username and password can be used for both.

Model

Tags  will be assigned to VMware Virtual Machine node only, so if such were discovered the following node attributes will be added:

Attribute

Description

tag_set
A dictionary of all <tag_name> := <tag_value> pairs. Visible in the UI.
tags
A list of all <tag_names>
tag_<tag_name>

all tag_<tag_name> = <tag_value>, where <tag_name> can only contain letters, digits and the underscore character '_'. Special characters, and ':', '-', ' ' must be replaced with an underscore.


Limitations

Tags attribute can be discovered only for vCenter v6.5+  using Discovery appliance v11.3+

Sources

VMware Docs. Tagging Objects

Discovering Cloud Tags