vsphere_search_inventory
Search across vSphere object types by name to locate resources and retrieve managed object IDs, even when the object type is unknown.
Instructions
Search the inventory by name across several object types at once.
Useful when you know a name but not what kind of object it is, or when you need the managed object id to pass to another tool.
Args:
query: Name to search for (substring, or glob with */?).
types: Object types to search. Defaults to all of vm, host,
cluster, datastore, network, datacenter,
resource_pool and folder.
limit: Maximum number of matches to return in total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| types | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||