Search Index Find By Datastore Path
Finds a virtual machine by its location on a datastore.
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.
"FindByDatastorePathRequestType Object"
A datastore path to the .vmx file for the virtual machine.
The virtual machine that is found. If no virtual machine is found, null is returned. Only a single entity is returned, even if there are multiple matches.
"MoRefVirtualMachine Object"
InvalidDatastore: if a datastore has not been specified in the path or if the specified datastore does not exist on the specified datacenter.
"InvalidDatastore Object"
The name of the datastore that is invalid.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/SearchIndex/{moId}/FindByDatastorePath