With the vCenter plug-in for vRealize Orchestrator, you can query the vCenter inventory for specific objects.
Querying Methods
For querying, you can either use the vCSearchIndex managed object, or the object finder methods that are included in the plug-in inventory, such as getAllDatastores(), getAllVirtualMachines(), findAllForType(), and others.
Performance
Type of Expression | Description |
---|---|
Name expressions | You can specify a name as an argument for a query parameter.
Note: The objects are filtered by the specified name argument according to the name of the plug-in object as it is appears in the
vCenter plug-in inventory.
|
XPath expressions | You can use expressions based on the XPath query language. For more information, see Using XPath Expressions with the vCenter Plug-In. |
When you invoke a vCenter inventory object with custom properties, each reference to this object, in a workflow or an action, sends a query to the vCenter, which generates a noticeable performance overhead. To optimize performance and avoid serializing and deserializing the object multiple times within a workflow run, it is best to use a shared resource to store the object, instead of storing it as a workflow attribute, an input, or an output parameter. Such shared resource can be a configuration element or a resource element.