Package com.vmware.vim25.mo
Class VirtualMachine
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.ExtensibleManagedObject
com.vmware.vim25.mo.ManagedEntity
com.vmware.vim25.mo.VirtualMachine
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualMachine(ServerConnection serverConnection, ManagedObjectReference mor) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.as of SDK4.1.acquireTicket(String ticketType) voidapplyEvcModeVM_Task(HostFeatureMask[] mask, boolean completeMasks) attachDisk_Task(ID diskId, Datastore datastore, int controllerKey, int unitNumber) voidcloneVM_Task(Folder folder, String name, VirtualMachineCloneSpec spec) createSnapshot_Task(String name, String description, boolean memory, boolean quiesce) createSnapshotEx_Task(String name, String description, boolean memory, VirtualMachineGuestQuiesceSpec quiesceSpec) voiddetachDisk_Task(ID diskId) booleandropConnections(VirtualMachineConnection[] listOfConnections) enableSecondaryVM_Task(VirtualMachine vm, HostSystem host) exportVm()Backward-compat alias forgetDatastore().getGuest()Network[]voidvoidmarkAsVirtualMachine(ResourcePool pool, HostSystem host) migrateVM_Task(ResourcePool pool, HostSystem host, VirtualMachineMovePriority priority, VirtualMachinePowerState state) voidpowerOnVM_Task(HostSystem host) promoteDisks_Task(boolean unlink, VirtualDisk[] disks) intqueryChangedDiskAreas(VirtualMachineSnapshot snapshot, int deviceKey, long startOffset, String changeId) Deprecated.As of 6.0 usequeryFaultToleranceCompatibilityEx(java.lang.Boolean)queryFaultToleranceCompatibilityEx(Boolean forLegacyFt) This API can be invoked to determine whether a virtual machine is compatible for Fault Tolerance.String[]voidvoidreloadVirtualMachineFromPath_Task(String configurationPath) relocateVM_Task(VirtualMachineRelocateSpec spec, VirtualMachineMovePriority priority) removeAllSnapshots_Task(boolean consolidate, SnapshotSelectionSpec spec) voidrevertToCurrentSnapshot_Task(HostSystem host, boolean suppressPowerOn) voidsendNMI()voidsetDisplayTopology(VirtualMachineDisplayTopology[] displays) voidsetScreenResolution(int width, int height) voidvoidstartRecording_Task(String name, String description) startReplaying_Task(VirtualMachineSnapshot replaySnapshot) voidvoidvoidupgradeTools_Task(String installerOptions) upgradeVM_Task(String version) Methods inherited from class com.vmware.vim25.mo.ManagedEntity
destroy_Task, getAlarmActionEabled, getConfigIssue, getConfigStatus, getCustomValue, getDeclaredAlarmState, getDisabledMethod, getEffectiveRole, getName, getOverallStatus, getParent, getPermission, getRecentTasks, getTag, getTriggeredAlarmState, reload, rename_TaskMethods inherited from class com.vmware.vim25.mo.ExtensibleManagedObject
getAvailableField, getValues, setCustomValueMethods 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
-
VirtualMachine
-
-
Method Details
-
getCapability
-
getConfig
-
getDatastore
-
getEnvironmentBrowser
-
getGuest
-
getGuestHeartbeatStatus
-
getLayout
-
getLayoutEx
-
getNetwork
-
getResourceConfig
-
getResourcePool
-
getRuntime
-
getSnapshot
-
getStorage
-
getSummary
-
answerVM
public void answerVM(String questionId, String answerChoice) throws ConcurrentAccess, RuntimeFault, RemoteException -
applyEvcModeVM_Task
public Task applyEvcModeVM_Task(HostFeatureMask[] mask, boolean completeMasks) throws InvalidState, RuntimeFault, RemoteException - Throws:
InvalidStateRuntimeFaultRemoteException
-
attachDisk_Task
public Task attachDisk_Task(ID diskId, Datastore datastore, int controllerKey, int unitNumber) throws DeviceUnsupportedForVmVersion, FileFault, InvalidController, InvalidDatastore, InvalidState, MissingController, NotFound, VmConfigFault, RuntimeFault, RemoteException -
checkCustomizationSpec
public void checkCustomizationSpec(CustomizationSpec spec) throws CustomizationFault, RuntimeFault, RemoteException -
consolidateVMDisks_Task
public Task consolidateVMDisks_Task() throws FileFault, InvalidState, TaskInProgress, VmConfigFault, RuntimeFault, RemoteException -
createScreenshot_Task
public Task createScreenshot_Task() throws FileFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
createSecondaryVM_Task
public Task createSecondaryVM_Task(HostSystem host) throws FileFault, InsufficientResourcesFault, InvalidState, TaskInProgress, VmConfigFault, VmFaultToleranceIssue, RuntimeFault, RemoteException -
createSecondaryVMEx_Task
public Task createSecondaryVMEx_Task(HostSystem host, FaultToleranceConfigSpec spec) throws FileFault, InsufficientResourcesFault, InvalidState, TaskInProgress, VmConfigFault, VmFaultToleranceIssue, RuntimeFault, RemoteException -
createSnapshot_Task
public Task createSnapshot_Task(String name, String description, boolean memory, boolean quiesce) throws FileFault, InvalidName, InvalidState, SnapshotFault, TaskInProgress, VmConfigFault, RuntimeFault, RemoteException -
createSnapshotEx_Task
public Task createSnapshotEx_Task(String name, String description, boolean memory, VirtualMachineGuestQuiesceSpec quiesceSpec) throws FileFault, InvalidName, InvalidState, SnapshotFault, TaskInProgress, VmConfigFault, RuntimeFault, RemoteException -
cryptoUnlock_Task
-
customizeVM_Task
public Task customizeVM_Task(CustomizationSpec spec) throws CustomizationFault, RuntimeFault, RemoteException -
defragmentAllDisks
public void defragmentAllDisks() throws FileFault, InvalidPowerState, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
detachDisk_Task
public Task detachDisk_Task(ID diskId) throws FileFault, InvalidState, NotFound, VmConfigFault, RuntimeFault, RemoteException -
disableSecondaryVM_Task
public Task disableSecondaryVM_Task(VirtualMachine vm) throws InvalidState, TaskInProgress, VmFaultToleranceIssue, RuntimeFault, RemoteException -
dropConnections
public boolean dropConnections(VirtualMachineConnection[] listOfConnections) throws InvalidState, RuntimeFault, RemoteException - Throws:
InvalidStateRuntimeFaultRemoteException
-
enableSecondaryVM_Task
public Task enableSecondaryVM_Task(VirtualMachine vm, HostSystem host) throws InvalidState, TaskInProgress, VmConfigFault, VmFaultToleranceIssue, RuntimeFault, RemoteException -
estimateStorageForConsolidateSnapshots_Task
public Task estimateStorageForConsolidateSnapshots_Task() throws FileFault, InvalidState, TaskInProgress, VmConfigFault, RuntimeFault, RemoteException -
exportVm
public HttpNfcLease exportVm() throws FileFault, InvalidPowerState, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
instantClone_Task
public Task instantClone_Task(VirtualMachineInstantCloneSpec spec) throws DisallowedMigrationDeviceAttached, FileFault, InsufficientResourcesFault, InvalidDatastore, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
makePrimaryVM_Task
public Task makePrimaryVM_Task(VirtualMachine vm) throws InvalidState, TaskInProgress, VmFaultToleranceIssue, RuntimeFault, RemoteException -
markAsTemplate
public void markAsTemplate() throws FileFault, InvalidState, VmConfigFault, RuntimeFault, RemoteException -
migrateVM_Task
public Task migrateVM_Task(ResourcePool pool, HostSystem host, VirtualMachineMovePriority priority, VirtualMachinePowerState state) throws FileFault, InsufficientResourcesFault, InvalidState, MigrationFault, Timedout, VmConfigFault, RuntimeFault, RemoteException -
mountToolsInstaller
public void mountToolsInstaller() throws InvalidState, VmConfigFault, VmToolsUpgradeFault, RuntimeFault, RemoteException -
powerOffVM_Task
-
powerOnVM_Task
public Task powerOnVM_Task(HostSystem host) throws FileFault, InsufficientResourcesFault, InvalidState, TaskInProgress, VmConfigFault, RuntimeFault, RemoteException -
promoteDisks_Task
public Task promoteDisks_Task(boolean unlink, VirtualDisk[] disks) throws InvalidPowerState, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
putUsbScanCodes
- Throws:
RuntimeFaultRemoteException
-
queryConnections
public VirtualMachineConnection[] queryConnections() throws InvalidState, Timedout, VmConfigFault, RuntimeFault, RemoteException -
rebootGuest
public void rebootGuest() throws InvalidState, TaskInProgress, ToolsUnavailable, RuntimeFault, RemoteException -
reconfigVM_Task
public Task reconfigVM_Task(VirtualMachineConfigSpec spec) throws ConcurrentAccess, DuplicateName, FileFault, InsufficientResourcesFault, InvalidDatastore, InvalidName, InvalidState, TaskInProgress, VmConfigFault, RuntimeFault, RemoteException -
refreshStorageInfo
- Throws:
RuntimeFaultRemoteException
-
reloadVirtualMachineFromPath_Task
public Task reloadVirtualMachineFromPath_Task(String configurationPath) throws AlreadyExists, FileFault, InvalidPowerState, InvalidState, TaskInProgress, VmConfigFault, RuntimeFault, RemoteException -
relocateVM_Task
public Task relocateVM_Task(VirtualMachineRelocateSpec spec, VirtualMachineMovePriority priority) throws FileFault, InsufficientResourcesFault, InvalidDatastore, InvalidState, MigrationFault, Timedout, VmConfigFault, RuntimeFault, RemoteException -
removeAllSnapshots_Task
public Task removeAllSnapshots_Task(boolean consolidate, SnapshotSelectionSpec spec) throws InvalidState, SnapshotFault, TaskInProgress, RuntimeFault, RemoteException -
resetVM_Task
-
resetGuestInformation
- Throws:
InvalidStateRuntimeFaultRemoteException
-
revertToCurrentSnapshot_Task
public Task revertToCurrentSnapshot_Task(HostSystem host, boolean suppressPowerOn) throws InsufficientResourcesFault, InvalidState, NotFound, SnapshotFault, TaskInProgress, VmConfigFault, RuntimeFault, RemoteException -
sendNMI
- Throws:
InvalidStateRuntimeFaultRemoteException
-
setDisplayTopology
public void setDisplayTopology(VirtualMachineDisplayTopology[] displays) throws InvalidState, ToolsUnavailable, RuntimeFault, RemoteException -
setScreenResolution
public void setScreenResolution(int width, int height) throws InvalidState, ToolsUnavailable, RuntimeFault, RemoteException -
shutdownGuest
public void shutdownGuest() throws InvalidState, TaskInProgress, ToolsUnavailable, RuntimeFault, RemoteException -
standbyGuest
public void standbyGuest() throws InvalidState, TaskInProgress, ToolsUnavailable, RuntimeFault, RemoteException -
startRecording_Task
public Task startRecording_Task(String name, String description) throws FileFault, HostIncompatibleForRecordReplay, InvalidName, InvalidPowerState, InvalidState, RecordReplayDisabled, SnapshotFault, TaskInProgress, VmConfigFault, RuntimeFault, RemoteException -
startReplaying_Task
public Task startReplaying_Task(VirtualMachineSnapshot replaySnapshot) throws FileFault, HostIncompatibleForRecordReplay, InvalidPowerState, InvalidState, NotFound, RecordReplayDisabled, SnapshotFault, TaskInProgress, VmConfigFault, RuntimeFault, RemoteException -
stopRecording_Task
public Task stopRecording_Task() throws FileFault, InvalidPowerState, InvalidState, SnapshotFault, TaskInProgress, RuntimeFault, RemoteException -
stopReplaying_Task
public Task stopReplaying_Task() throws FileFault, InvalidPowerState, InvalidState, SnapshotFault, TaskInProgress, RuntimeFault, RemoteException -
suspendVM_Task
-
terminateVM
-
terminateFaultTolerantVM_Task
public Task terminateFaultTolerantVM_Task(VirtualMachine vm) throws InvalidState, TaskInProgress, VmFaultToleranceIssue, RuntimeFault, RemoteException -
turnOffFaultToleranceForVM_Task
public Task turnOffFaultToleranceForVM_Task() throws InvalidState, TaskInProgress, VmFaultToleranceIssue, RuntimeFault, RemoteException -
unmountToolsInstaller
public void unmountToolsInstaller() throws InvalidState, VmConfigFault, RuntimeFault, RemoteException -
unregisterVM
-
upgradeTools_Task
public Task upgradeTools_Task(String installerOptions) throws InvalidState, TaskInProgress, ToolsUnavailable, VmConfigFault, VmToolsUpgradeFault, RuntimeFault, RemoteException -
upgradeVM_Task
public Task upgradeVM_Task(String version) throws AlreadyUpgraded, InvalidState, NoDiskFound, TaskInProgress, RuntimeFault, RemoteException -
getCurrentSnapShot
public VirtualMachineSnapshot getCurrentSnapShot() throws InvalidProperty, RuntimeFault, RemoteException -
getParentVApp
- Since:
- SDK4.1
-
getRootSnapshot
- Since:
- SDK4.1
-
acquireMksTicket
Deprecated.as of SDK4.1. Use acquireTicket instead.- Throws:
RuntimeFaultRemoteException
-
acquireTicket
public VirtualMachineTicket acquireTicket(String ticketType) throws InvalidState, RuntimeFault, RemoteException - Throws:
InvalidStateRuntimeFaultRemoteException- Since:
- SDK4.1
-
cloneVM_Task
public Task cloneVM_Task(Folder folder, String name, VirtualMachineCloneSpec spec) throws VmConfigFault, TaskInProgress, CustomizationFault, FileFault, InvalidState, InsufficientResourcesFault, MigrationFault, InvalidDatastore, RuntimeFault, RemoteException -
createSecondaryVMEx_Task
public Task createSecondaryVMEx_Task(HostSystem host) throws FileFault, InsufficientResourcesFault, InvalidState, ManagedObjectNotFound, NotSupported, RuntimeFault, TaskInProgress, VmConfigFault, VmFaultToleranceIssue, RemoteException -
createSecondaryVMEx_Task
public Task createSecondaryVMEx_Task(FaultToleranceConfigSpec spec) throws FileFault, InsufficientResourcesFault, InvalidState, ManagedObjectNotFound, NotSupported, RuntimeFault, TaskInProgress, VmConfigFault, VmFaultToleranceIssue, RemoteException -
extractOvfEnvironment
- Throws:
InvalidStateRuntimeFaultRemoteException- Since:
- SDK4.0
-
markAsVirtualMachine
public void markAsVirtualMachine(ResourcePool pool, HostSystem host) throws VmConfigFault, FileFault, InvalidState, InvalidDatastore, RuntimeFault, RemoteException -
queryChangedDiskAreas
public DiskChangeInfo queryChangedDiskAreas(VirtualMachineSnapshot snapshot, int deviceKey, long startOffset, String changeId) throws FileFault, NotFound, RuntimeFault, RemoteException - Throws:
FileFaultNotFoundRuntimeFaultRemoteException- Since:
- SDK4.0
-
queryFaultToleranceCompatibility
@Deprecated public LocalizedMethodFault[] queryFaultToleranceCompatibility() throws InvalidState, VmConfigFault, RuntimeFault, RemoteExceptionDeprecated.As of 6.0 usequeryFaultToleranceCompatibilityEx(java.lang.Boolean)- Throws:
InvalidStateVmConfigFaultRuntimeFaultRemoteException- Since:
- SDK4.1
-
queryFaultToleranceCompatibilityEx
public LocalizedMethodFault[] queryFaultToleranceCompatibilityEx(Boolean forLegacyFt) throws InvalidState, VmConfigFault, RuntimeFault, RemoteException This API can be invoked to determine whether a virtual machine is compatible for Fault Tolerance. The API only checks for VM-specific factors that impact compatibility for Fault Tolerance. Other requirements for Fault Tolerance such as host processor compatibility, logging nic configuration and licensing are not covered by this API. The query returns a list of faults, each fault corresponding to a specific incompatibility. If a given virtual machine is compatible for Fault Tolerance, then the fault list returned will be empty.- Parameters:
forLegacyFt- checks for legacy record-replay FT compatibility only if this is set to true.- Returns:
- Localized Method Fault
- Throws:
InvalidStateVmConfigFaultRuntimeFaultRemoteException- Since:
- 6.0
-
queryFaultToleranceCompatibilityEx
public LocalizedMethodFault[] queryFaultToleranceCompatibilityEx() throws InvalidState, VmConfigFault, RuntimeFault, RemoteException- Throws:
InvalidStateVmConfigFaultRuntimeFaultRemoteException- Since:
- 6.0
-
queryUnownedFiles
- Throws:
RuntimeFaultRemoteException- Since:
- SDK4.0
-
relocateVM_Task
public Task relocateVM_Task(VirtualMachineRelocateSpec spec) throws VmConfigFault, Timedout, FileFault, InvalidState, InsufficientResourcesFault, MigrationFault, InvalidDatastore, RuntimeFault, RemoteException -
removeAllSnapshots_Task
public Task removeAllSnapshots_Task() throws SnapshotFault, TaskInProgress, InvalidState, RuntimeFault, RemoteException -
revertToCurrentSnapshot_Task
public Task revertToCurrentSnapshot_Task(HostSystem host) throws VmConfigFault, SnapshotFault, TaskInProgress, InvalidState, InsufficientResourcesFault, NotFound, RuntimeFault, RemoteException -
getDatastores
Backward-compat alias forgetDatastore().
-