Package com.vmware.vim25.mo
Class SearchIndex
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.SearchIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllByDnsName(Datacenter datacenter, String dnsName, boolean vmSearch) findAllByIp(Datacenter datacenter, String ip, boolean vmSearch) findAllByUuid(Datacenter datacenter, String uuid, boolean vmSearch, boolean instanceUuid) findByDatastorePath(Datacenter datacenter, String dPath) Find a VM by its location on a datastorefindByDnsName(Datacenter datacenter, String dnsName, boolean vmOnly) findByInventoryPath(String inventoryPath) find a managed object in the inventory tree.findByIp(Datacenter datacenter, String ip, boolean vmOnly) Find a Virtual Machine or Host System by its IP address.findByUuid(Datacenter datacenter, String uuid, boolean vmOnly) findByUuid(Datacenter datacenter, String uuid, boolean vmOnly, Boolean instanceUuid) findChild(ManagedEntity parent, String name) Find a child entity under a ManagedObjectReference in the inventory.Methods inherited from class com.vmware.vim25.mo.ManagedObject
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setCachedProperty, setMOR, setServerConnection, toString, waitForValues
-
Constructor Details
-
SearchIndex
-
-
Method Details
-
findByInventoryPath
find a managed object in the inventory tree.- Parameters:
inventoryPath- The inventory path to the managed object searched.- Returns:
- ManagedEntity object.
- Throws:
RemoteExceptionRuntimeFault
-
findByIp
public ManagedEntity findByIp(Datacenter datacenter, String ip, boolean vmOnly) throws RuntimeFault, RemoteException Find a Virtual Machine or Host System by its IP address.- Parameters:
datacenter- The datacenter within which it searches. If null is passed, all inventory is searched.ip- The IP address of the VM or Host.vmOnly- When set true only searches for VM; otherwise only for Host.- Returns:
- A ManagedEntity to either HostSystem or VirtualMachine having the IP address.
- Throws:
RuntimeFaultRemoteException
-
findByDnsName
public ManagedEntity findByDnsName(Datacenter datacenter, String dnsName, boolean vmOnly) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
findAllByDnsName
public ManagedEntity[] findAllByDnsName(Datacenter datacenter, String dnsName, boolean vmSearch) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException- Since:
- SDK4.0
-
findAllByIp
public ManagedEntity[] findAllByIp(Datacenter datacenter, String ip, boolean vmSearch) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException- Since:
- SDK4.0
-
findAllByUuid
public ManagedEntity[] findAllByUuid(Datacenter datacenter, String uuid, boolean vmSearch, boolean instanceUuid) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException- Since:
- SDK4.0
-
findByDatastorePath
public VirtualMachine findByDatastorePath(Datacenter datacenter, String dPath) throws InvalidDatastore, RuntimeFault, RemoteException Find a VM by its location on a datastore- Parameters:
datacenter- The datacenter within which it searches.dPath- The datastore path, for example, "[storage1] WinXP/WinXP.vmx".- Returns:
- A VirtualMachine that pointed by the dPath
- Throws:
RemoteExceptionRuntimeFaultInvalidDatastore
-
findByUuid
public ManagedEntity findByUuid(Datacenter datacenter, String uuid, boolean vmOnly) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
findByUuid
public ManagedEntity findByUuid(Datacenter datacenter, String uuid, boolean vmOnly, Boolean instanceUuid) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
findChild
public ManagedEntity findChild(ManagedEntity parent, String name) throws RuntimeFault, RemoteException Find a child entity under a ManagedObjectReference in the inventory.- Parameters:
parent- The parent managed entity.name- The name of the child to search.- Returns:
- A child entity.
- Throws:
RemoteExceptionRuntimeFault
-