Search Index Find By Inventory Path
Finds a managed entity based on its location in the inventory.
The path is separated by slashes ('/'). For example, a path should be of the form "My Folder/My Datacenter/vm/Discovered VM/VM1". A leading slash or trailing slash is ignored. Thus, the following paths all represents the same object: "a/b", "/a/b", "a/b/", and '/a/b/'. Slashes in names must be represented using %2f, following the standard URL syntax. Any object in the inventory can be retrieved using this method, including resource pools and hosts.
Required privileges: System.View
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case SearchIndex/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"FindByInventoryPathRequestType Object"
The path to the entity.
The managed entity that is found. If no match is found, null is returned.
"MoRefManagedEntity Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/SearchIndex/{moId}/FindByInventoryPath