Uses of Class
com.xensource.xenapi.VM
-
Uses of VM in com.xensource.xenapi
Fields in com.xensource.xenapi declared as VMModifier and TypeFieldDescriptionVTPM.Record.backendThe domain where the backend is located (unused) First published in XenServer 4.0.Host.Record.controlDomainThe control domain (domain 0) First published in XenServer 7.1.VM.Record.parentRef pointing to the parent of this VM First published in XenServer 5.6.VM.Record.snapshotOfRef pointing to the VM this snapshot is of.Console.Record.VMVM to which this console is attachedCrashdump.Record.VMthe virtual machineVBD.Record.VMthe virtual machineVGPU.Record.VMVM that owns the vGPUVIF.Record.VMvirtual machine to which this vif is connectedVTPM.Record.VMThe virtual machine the TPM is attached to First published in XenServer 4.0.VUSB.Record.VMVM that owns the VUSBFields in com.xensource.xenapi with type parameters of type VMModifier and TypeFieldDescriptionVM.Record.childrenList pointing to all the children of this VM First published in XenServer 5.6.Host.Record.residentVMslist of VMs currently resident on hostVM.Record.snapshotsList pointing to all the VM snapshots.VMAppliance.Record.VMsall VMs in this applianceVMGroup.Record.VMsThe list of VMs associated with the group Experimental.VMPP.Record.VMsall VMs attached to this protection policyVMSS.Record.VMsall VMs attached to this snapshot scheduleMethods in com.xensource.xenapi that return VMModifier and TypeMethodDescriptionVM.checkpoint(Connection c, String newName) Checkpoints the specified VM, making a new VM.VM.copy(Connection c, String newName, SR sr) Copied the specified VM, making a new VM.static VMVM.create(Connection c, VM.Record record) NOT RECOMMENDED! VM.clone or VM.copy (or VM.import) is a better choice in almost all situations.VM.createClone(Connection c, String newName) Clones the specified VM, making a new VM.VTPM.getBackend(Connection c) Get the backend field of the given VTPM.static VMVM.getByUuid(Connection c, String uuid) Get a reference to the VM instance with the specified UUID.Host.getControlDomain(Connection c) Get the control_domain field of the given host.VM.getParent(Connection c) Get the parent field of the given VM.VM.getSnapshotOf(Connection c) Get the snapshot_of field of the given VM.Console.getVM(Connection c) Get the VM field of the given console.Crashdump.getVM(Connection c) Get the VM field of the given crashdump.VBD.getVM(Connection c) Get the VM field of the given VBD.VGPU.getVM(Connection c) Get the VM field of the given VGPU.VIF.getVM(Connection c) Get the VM field of the given VIF.VTPM.getVM(Connection c) Get the VM field of the given VTPM.VUSB.getVM(Connection c) Get the VM field of the given VUSB.VM.migrateSend(Connection c, Map<String, String> dest, Boolean live, Map<VDI, SR> vdiMap, Map<VIF, Network> vifMap, Map<String, String> options) Migrate the VM to another host.VM.migrateSend(Connection c, Map<String, String> dest, Boolean live, Map<VDI, SR> vdiMap, Map<VIF, Network> vifMap, Map<String, String> options, Map<VGPU, GPUGroup> vgpuMap) Migrate the VM to another host.VM.snapshot(Connection c, String newName) Snapshots the specified VM, making a new VM.VM.snapshot(Connection c, String newName, Set<VDI> ignoreVdis) Snapshots the specified VM, making a new VM.VM.snapshotWithQuiesce(Connection c, String newName) Deprecated.since Citrix Hypervisor 8.1static VMTypes.toVM(Task task, Connection connection) static VMDeprecated.this method will not be publicly exposed in future releases of this package.Methods in com.xensource.xenapi that return types with arguments of type VMModifier and TypeMethodDescriptionVM.getAll(Connection c) Return a list of all the VMs known to the system.VM.getAllRecords(Connection c) Return a map of VM references to VM records for all VMs known to the system.VM.getByNameLabel(Connection c, String label) Get all the VM instances with the given label.VM.getChildren(Connection c) Get the children field of the given VM.Host.getResidentVMs(Connection c) Get the resident_VMs field of the given host.VM.getSnapshots(Connection c) Get the snapshots field of the given VM.Deprecated.since XenServer 6.1VMAppliance.getVMs(Connection c) Get the VMs field of the given VM_appliance.VMGroup.getVMs(Connection c) Get the VMs field of the given VM_group.VMPP.getVMs(Connection c) Deprecated.since XenServer 6.2VMSS.getVMs(Connection c) Get the VMs field of the given VMSS.Return a set of VMs which prevent the host being evacuated, with per-VM error codes Minimum allowed role: read-only First published in XenServer 5.0.Pool.haComputeVmFailoverPlan(Connection c, Set<Host> failedHosts, Set<VM> failedVms) Return a VM failover plan assuming a given subset of hosts fail Minimum allowed role: pool-operator First published in XenServer 5.0.Import an XVA from a URI Minimum allowed role: pool-operator First published in XenServer 7.0.Retrieves recommended host migrations to perform when evacuating the host from the wlb server.Pool.retrieveWlbRecommendations(Connection c) Retrieves vm migrate recommendations for the pool from the workload balancing server Minimum allowed role: read-only First published in XenServer 5.5.Types.toMapOfVMMapOfStringString(Object object) Deprecated.this method will not be publicly exposed in future releases of this package.Types.toMapOfVMSetOfString(Object object) Deprecated.this method will not be publicly exposed in future releases of this package.Types.toMapOfVMString(Object object) Deprecated.this method will not be publicly exposed in future releases of this package.Types.toMapOfVMVMRecord(Object object) Deprecated.this method will not be publicly exposed in future releases of this package.Deprecated.this method will not be publicly exposed in future releases of this package.Methods in com.xensource.xenapi with parameters of type VMModifier and TypeMethodDescriptionstatic StringVMPP.archiveNow(Connection c, VM snapshot) Deprecated.since XenServer 6.2static VGPUMinimum allowed role: pool-operator First published in XenServer 6.0.static VGPUVGPU.create(Connection c, VM VM, GPUGroup GPUGroup, String device, Map<String, String> otherConfig, VGPUType type) Minimum allowed role: pool-operator First published in XenServer 6.0.static VTPMVTPM.create(Connection c, VM vM, Boolean isUnique) Create a new VTPM instance, and return its handle.static VUSBCreate a new VUSB record in the database only Minimum allowed role: pool-admin First published in XenServer 7.3.static TaskVGPU.createAsync(Connection c, VM VM, GPUGroup GPUGroup, String device, Map<String, String> otherConfig) Minimum allowed role: pool-operator First published in XenServer 6.0.static TaskVGPU.createAsync(Connection c, VM VM, GPUGroup GPUGroup, String device, Map<String, String> otherConfig, VGPUType type) Minimum allowed role: pool-operator First published in XenServer 6.0.static TaskVTPM.createAsync(Connection c, VM vM, Boolean isUnique) Create a new VTPM instance, and return its handle.static TaskVUSB.createAsync(Connection c, VM VM, USBGroup USBGroup, Map<String, String> otherConfig) Create a new VUSB record in the database only Minimum allowed role: pool-admin First published in XenServer 7.3.Method parameters in com.xensource.xenapi with type arguments of type VMModifier and TypeMethodDescriptionstatic LongPool.haComputeHypotheticalMaxHostFailuresToTolerate(Connection c, Map<VM, String> configuration) Returns the maximum number of host failures we could tolerate before we would be unable to restart the provided VMs Minimum allowed role: read-only First published in XenServer 5.0.