|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.VcloudResource<T>
com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.AbstractVAppType>
com.vmware.vcloud.sdk.AbstractVapp<com.vmware.vcloud.api.rest.schema.VmType>
com.vmware.vcloud.sdk.VM
public class VM
Helper class to access the VM Resource in vCLoud API.
VmType| Method Summary | |
|---|---|
com.vmware.vcloud.api.rest.schema.MksTicketType |
acquireMksTicket()
Retrieve a mks ticket that you can use to gain access to the console of a running VM |
com.vmware.vcloud.api.rest.schema.ScreenTicketType |
acquireTicket()
Returns a ticket that client can use to open a screen connection. |
void |
answerVmQuestion(int choiceId,
String questionId)
Answer a Vm Pending Question |
Task |
attachDisk(com.vmware.vcloud.api.rest.schema.ReferenceType diskRef)
Attaching a disk to the VM. |
Task |
attachDisk(com.vmware.vcloud.api.rest.schema.ReferenceType diskRef,
Integer busNumber,
Integer unitNumber)
Attaching a disk to the VM. |
Task |
checkCompliance()
Perform storage profile compliance check on a VM. |
static Task |
checkCompliance(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Perform storage profile compliance check on a VM. |
com.vmware.vcloud.api.rest.schema.ComplianceResultType |
complianceResult()
Returns the storage profile compliance result on a VM. |
static com.vmware.vcloud.api.rest.schema.ComplianceResultType |
complianceResult(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns the storage profile compliance result on a VM. |
Task |
consolidate()
Consolidates a vm. |
static Task |
consolidate(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Consolidates a vm. |
Task |
detachDisk(com.vmware.vcloud.api.rest.schema.ReferenceType diskRef)
Detaching disk from the VM. |
Task |
detachDisk(com.vmware.vcloud.api.rest.schema.ReferenceType diskRef,
Integer busNumber,
Integer unitNumber)
Detaching disk from the VM. |
Task |
disableNestedHypervisor()
Disable the nested hypervisor feature on this vm. |
static Task |
disableNestedHypervisor(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Disable the nested hypervisor feature on this vm. |
Task |
ejectMedia(com.vmware.vcloud.api.rest.schema.MediaInsertOrEjectParamsType mediaInsertOrEjectParamsType)
An ejectMedia request reverses a specific insertMedia request. |
Task |
enableNestedHypervisor()
Enable the nested hypervisor feature on this vm. |
static Task |
enableNestedHypervisor(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Enable the nested hypervisor feature on this vm. |
void |
forceGuestCustomization()
Force guest customization on next power on. |
static void |
forceGuestCustomization(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Force guest customization on next power on. |
List<com.vmware.vcloud.api.rest.schema.ReferenceType> |
getAttachedDisks()
Returns the list of independent disks which are attached to this VM. |
VirtualCpu |
getCpu()
Returns the Virtual CPU for the VM |
static VirtualCpu |
getCpu(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns VirtualCpu Item for the given vm Ref |
com.vmware.vcloud.api.rest.schema.CurrentUsageType |
getCurrentMetrics()
Gets the current usage for all available VM metrics. |
com.vmware.vcloud.api.rest.schema.CurrentUsageType |
getCurrentMetrics(com.vmware.vcloud.api.rest.schema.CurrentUsageSpecType currentUsageSpec)
Gets the current usage for VM metrics according to the provided spec object. |
static com.vmware.vcloud.api.rest.schema.CurrentUsageType |
getCurrentMetrics(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Gets the current usage for all available VM metrics. |
static com.vmware.vcloud.api.rest.schema.CurrentUsageType |
getCurrentMetrics(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef,
com.vmware.vcloud.api.rest.schema.CurrentUsageSpecType currentUsageSpec)
Gets the current usage for VM metrics according to the provided spec object. |
List<VirtualDisk> |
getDisks()
Returns the Virtual Disks for the VM. |
static List<VirtualDisk> |
getDisks(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns VirtualDisks for the given vm Ref |
com.vmware.vcloud.api.rest.schema.GuestCustomizationSectionType |
getGuestCustomizationSection()
Returns the GuestCustomizationSection for the given VM |
static com.vmware.vcloud.api.rest.schema.GuestCustomizationSectionType |
getGuestCustomizationSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns the GuestCustomizationSection |
com.vmware.vcloud.api.rest.schema.HistoricUsageType |
getHistoricMetrics()
Gets the past 24 hours worth of samples for all available VM metrics. |
com.vmware.vcloud.api.rest.schema.HistoricUsageType |
getHistoricMetrics(com.vmware.vcloud.api.rest.schema.HistoricUsageSpecType historicUsageSpec)
Gets the historic usage for VM metrics according to the provided spec object. |
static com.vmware.vcloud.api.rest.schema.HistoricUsageType |
getHistoricMetrics(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Gets the past 24 hours worth of samples for all available VM metrics. |
static com.vmware.vcloud.api.rest.schema.HistoricUsageType |
getHistoricMetrics(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef,
com.vmware.vcloud.api.rest.schema.HistoricUsageSpecType historicUsageSpec)
Gets the historic usage for VM metrics according to the provided spec object. |
HashMap<Integer,String> |
getIpAddressesById()
Returns the IP Addresses by Id. |
List<VirtualMedia> |
getMedias()
Returns the Virtual Media for the VM |
static List<VirtualMedia> |
getMedias(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns VirtualMedia Item for the given VM Ref |
VirtualMemory |
getMemory()
Returns the Virtual Memory for the VM |
static VirtualMemory |
getMemory(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns VirtualMemory Item for the given vm Ref |
List<VirtualNetworkCard> |
getNetworkCards()
Returns the Virtual NetworkCards for the VM |
static List<VirtualNetworkCard> |
getNetworkCards(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns VirtualNetworkCards for the given vm Ref |
Collection<com.vmware.vcloud.api.rest.schema.NetworkConnectionType> |
getNetworkConnections()
Returns the NetworkConnections for a VM |
com.vmware.vcloud.api.rest.schema.NetworkConnectionSectionType |
getNetworkConnectionSection()
Returns the NetworkConnectionSection for the given VM |
static com.vmware.vcloud.api.rest.schema.NetworkConnectionSectionType |
getNetworkConnectionSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns the NetworkConnectionSection |
com.vmware.vcloud.api.rest.schema.ovf.OperatingSystemSectionType |
getOperatingSystemSection()
Returns the OperatingSystemSection for the given VM |
static com.vmware.vcloud.api.rest.schema.ovf.OperatingSystemSectionType |
getOperatingSystemSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns the OperatingSystemSection |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getParentVappReference()
Returns the Parent Vapp ReferenceType. |
com.vmware.vcloud.api.rest.schema.ovf.environment.PlatformSectionType |
getPlatformSection()
Returns the platform section type of the VM. |
com.vmware.vcloud.api.rest.schema.ovf.environment.PropertySectionType |
getPropertySection()
Returns the property section type of the VM. |
com.vmware.vcloud.api.rest.schema.RuntimeInfoSectionType |
getRuntimeInfoSection()
Returns the RuntimeInfoSection of the VM |
static com.vmware.vcloud.api.rest.schema.RuntimeInfoSectionType |
getRuntimeInfoSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns the RuntimeInfoSection of the VM |
InputStream |
getScreen()
Returns a screen inputstream if available. |
List<SerialPort> |
getSerialPorts()
Deprecated. API 5.1, SDK 5.1, Internal API - NotSupported/UnImplemented |
static List<SerialPort> |
getSerialPorts(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Deprecated. API 5.1, SDK 5.1, Internal API - NotSupported/UnImplemented |
com.vmware.vcloud.api.rest.schema.ovf.VirtualHardwareSectionType |
getVirtualHardwareSection()
Returns the VirtualHardwareSection for the given VM |
static com.vmware.vcloud.api.rest.schema.ovf.VirtualHardwareSectionType |
getVirtualHardwareSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns the VirtualHardwareSectionType for the VM |
static VM |
getVMById(VcloudClient client,
String vCloudId)
Get VM helper using the vCloud ID |
static VM |
getVMByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns VM for the given reference |
com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType |
getVMDatastoreVimRef()
Returns the Virtual Machine Datastore VIM Object reference. |
Integer |
getVMDiskChainLength()
Returns the disks of a fast provisioned VM link to parent disks in a chain, and this number is the depth of this VMs disks in that chain. |
com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType |
getVMHostVimRef()
Returns the Virtual Machine Host VIM Object reference. |
com.vmware.vcloud.api.rest.schema.VmPendingQuestionType |
getVmQuestion()
Returns a Vm Pending Question |
static com.vmware.vcloud.api.rest.schema.VmPendingQuestionType |
getVmQuestion(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Returns a Vm Pending Question |
BigInteger |
getVmSize()
Returns the size of a vm. |
VMStatus |
getVMStatus()
Returns the VM status. |
com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType |
getVMVimRef()
Returns the Virtual Machine VIM Object reference. |
Task |
insertMedia(com.vmware.vcloud.api.rest.schema.MediaInsertOrEjectParamsType mediaInsertOrEjectParamsType)
An insertMedia request makes a virtual media entity readable by a VM |
Task |
installVMwareTools()
Installs VMware tools to the virtual machine. |
static Task |
installVMwareTools(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Installs VMware tools to the virtual machine. |
Boolean |
isVMwareToolsInstalled()
Checks whether the VMware tools installed or not. |
Task |
reconfigureVM(com.vmware.vcloud.api.rest.schema.VmType vmType)
Updates VM name, Description, and any or all of the following sections: VirtualHardwareSection OperatingSystemSection NetworkConnectionSection GuestCustomizationSection Sections not included in the request body will not be updated. |
Task |
reloadFromVC()
Reloads VM state from VC. |
static Task |
reloadFromVC(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Reloads VM state from VC. |
Task |
relocate(com.vmware.vcloud.api.rest.schema.ReferenceType datastoreReference)
Deprecated. API 5.1, SDK 5.1, use VMupdateVM(VmType) to relocate vm to a
different StorageProfle. Storage profile can be specified by using VmType |
static Task |
relocate(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef,
com.vmware.vcloud.api.rest.schema.ReferenceType datastoreReference)
Deprecated. API 5.1, SDK 5.1, use VMupdateVM(VmType) to relocate vm to a
different StorageProfle. Storage profile can be specified by using VmType |
Task |
updateCpu(VirtualCpu virtualCpuItem)
Updates the VirtualCpu Item of the VM |
Task |
updateDisks(List<VirtualDisk> virtualDisks)
Updates the VirtualDisks of a VM |
Task |
updateHotAdd(boolean memoryHotAdd,
boolean cpuHotAdd)
Enable/Disable the hot add options for this vm. |
static Task |
updateHotAdd(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef,
boolean memoryHotAdd,
boolean cpuHotAdd)
Enable/Disable the hot add options for this vm. |
Task |
updateMemory(VirtualMemory virtualMemoryItem)
Updates the VirtualMemory Item of a VM |
Task |
updateNetworkCards(List<VirtualNetworkCard> virtualNetworkCards)
Updates the VirtualNetworkCard of a VM |
Task |
updateSection(com.vmware.vcloud.api.rest.schema.ovf.SectionType sectionType)
Updating the VM Section. |
Task |
updateSerialPorts(List<SerialPort> serialPorts)
Deprecated. API 5.1, SDK 5.1, Internal API - NotSupported/UnImplemented |
Task |
updateVM(com.vmware.vcloud.api.rest.schema.VmType vmType)
Updates the vm. |
Task |
upgradeHardware()
Upgrade virtual hardware version of a VM to the highest supported virtual hardware version of provider vDC where the VM locates |
static Task |
upgradeHardware(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
Upgrade virtual hardware version of a VM to the highest supported virtual hardware version of provider vDC where the VM locates |
| Methods inherited from class com.vmware.vcloud.sdk.AbstractVapp |
|---|
createSnapshot, createSnapshot, delete, delete, deploy, deploy, discardSuspend, discardSuspend, getProductSections, getProductSections, getResource, getSnapshotSection, getSnapshotSection, isDeployed, powerOff, powerOff, powerOn, powerOn, reboot, reboot, removeAllSnapshots, removeAllSnapshots, reset, reset, revertToCurrentSnapshot, revertToCurrentSnapshot, shutdown, shutdown, suspend, suspend, undeploy, undeploy, updateProductSections |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudEntity |
|---|
getMetadata, getReference, getTasks |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static VM getVMByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vCloud API client VcloudClientvmRef - ReferenceType to the vm ReferenceType
VM
VCloudException
public static VM getVMById(VcloudClient client,
String vCloudId)
throws VCloudException
client - VcloudClientvCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example:
"urn:vcloud:media:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
VM
VCloudExceptionpublic VMStatus getVMStatus()
VMStatus
public Task updateVM(com.vmware.vcloud.api.rest.schema.VmType vmType)
throws VCloudException
vmType - VmType
Task
VCloudExceptionVmType
public com.vmware.vcloud.api.rest.schema.GuestCustomizationSectionType getGuestCustomizationSection()
throws VCloudException
GuestCustomizationSectionType
VCloudException
public static com.vmware.vcloud.api.rest.schema.GuestCustomizationSectionType getGuestCustomizationSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vmRef -
GuestCustomizationSectionType
VCloudException
public com.vmware.vcloud.api.rest.schema.ovf.VirtualHardwareSectionType getVirtualHardwareSection()
throws VCloudException
VirtualHardwareSectionType
VCloudException
public static com.vmware.vcloud.api.rest.schema.ovf.VirtualHardwareSectionType getVirtualHardwareSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vmRef -
VirtualHardwareSectionType
VCloudException
public com.vmware.vcloud.api.rest.schema.ovf.OperatingSystemSectionType getOperatingSystemSection()
throws VCloudException
OperatingSystemSectionType
VCloudException
public static com.vmware.vcloud.api.rest.schema.ovf.OperatingSystemSectionType getOperatingSystemSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vmRef -
OperatingSystemSectionType
VCloudException
public com.vmware.vcloud.api.rest.schema.RuntimeInfoSectionType getRuntimeInfoSection()
throws VCloudException
RuntimeInfoSectionType
VCloudException
public static com.vmware.vcloud.api.rest.schema.RuntimeInfoSectionType getRuntimeInfoSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - VcloudClientvmRef - ReferenceType
RuntimeInfoSectionType
VCloudException
public Task updateSection(com.vmware.vcloud.api.rest.schema.ovf.SectionType sectionType)
throws VCloudException
sectionType -
Task
VCloudException
public Task insertMedia(com.vmware.vcloud.api.rest.schema.MediaInsertOrEjectParamsType mediaInsertOrEjectParamsType)
throws VCloudException
mediaInsertOrEjectParamsType - MediaInsertOrEjectParamsType
Task
VCloudException
public Task ejectMedia(com.vmware.vcloud.api.rest.schema.MediaInsertOrEjectParamsType mediaInsertOrEjectParamsType)
throws VCloudException
mediaInsertOrEjectParamsType - MediaInsertOrEjectParamsType
Task
VCloudException
public BigInteger getVmSize()
throws VCloudException
BigInteger
VCloudException
public VirtualCpu getCpu()
throws VCloudException
VirtualCpu
VCloudException
public static VirtualCpu getCpu(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vCloud API client VcloudClientvmRef - vm Ref ReferenceType
VirtualCpu
VCloudException
public Task updateCpu(VirtualCpu virtualCpuItem)
throws VCloudException
virtualCpuItem -
Task
VCloudException
public VirtualMemory getMemory()
throws VCloudException
VirtualMemory
VCloudException
public static VirtualMemory getMemory(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vCloud API client VcloudClientvmRef - vm Ref ReferenceType
VirtualMemory
VCloudException
public Task updateMemory(VirtualMemory virtualMemoryItem)
throws VCloudException
virtualMemoryItem -
Task
VCloudException
public List<SerialPort> getSerialPorts()
throws VCloudException
List<SerialPort>
VCloudException
public static List<SerialPort> getSerialPorts(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - VcloudClientvmRef - ReferenceType
List<SerialPort>
VCloudException
public Task updateSerialPorts(List<SerialPort> serialPorts)
throws VCloudException
serialPorts -
Task
VCloudException
public List<VirtualDisk> getDisks()
throws VCloudException
List
VCloudException
public static List<VirtualDisk> getDisks(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vCloud API client VcloudClientvmRef - vm Ref ReferenceType
List
VCloudException
public Task updateDisks(List<VirtualDisk> virtualDisks)
throws VCloudException
virtualDisks - List
Task
VCloudException
public List<VirtualNetworkCard> getNetworkCards()
throws VCloudException
List
VCloudException
public static List<VirtualNetworkCard> getNetworkCards(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vCloud API client VcloudClientvmRef - vm Ref ReferenceType
List
VCloudException
public Task updateNetworkCards(List<VirtualNetworkCard> virtualNetworkCards)
throws VCloudException
virtualNetworkCards -
Task
VCloudException
public List<VirtualMedia> getMedias()
throws VCloudException
List
VCloudException
public static List<VirtualMedia> getMedias(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vCloud API client VcloudClientvmRef - VM Ref ReferenceType
VirtualMedia
VCloudException
public com.vmware.vcloud.api.rest.schema.ReferenceType getParentVappReference()
throws VCloudException
ReferenceType
VCloudException
public com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType getVMVimRef()
throws VCloudException
VimObjectRefType
VCloudException
public com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType getVMDatastoreVimRef()
throws VCloudException
VimObjectRefType
VCloudException
public com.vmware.vcloud.api.rest.schema.extension.VimObjectRefType getVMHostVimRef()
throws VCloudException
VimObjectRefType
VCloudException
public Integer getVMDiskChainLength()
throws VCloudException
Integer
VCloudException
public Boolean isVMwareToolsInstalled()
throws VCloudException
getRuntimeInfoSection() to know more about the installed tools version.
Boolean
VCloudException
public com.vmware.vcloud.api.rest.schema.ovf.environment.PlatformSectionType getPlatformSection()
throws VCloudException
PlatformSectionType
VCloudException
public com.vmware.vcloud.api.rest.schema.ovf.environment.PropertySectionType getPropertySection()
throws VCloudException
PropertySectionType
VCloudException
public com.vmware.vcloud.api.rest.schema.NetworkConnectionSectionType getNetworkConnectionSection()
throws VCloudException
NetworkConnectionSectionType
VCloudException
public static com.vmware.vcloud.api.rest.schema.NetworkConnectionSectionType getNetworkConnectionSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vmRef -
NetworkConnectionSectionType
VCloudException
public Collection<com.vmware.vcloud.api.rest.schema.NetworkConnectionType> getNetworkConnections()
throws VCloudException
Collection<NetworkConnectionType>
VCloudException
public HashMap<Integer,String> getIpAddressesById()
throws VCloudException
HashMap
VCloudException
public com.vmware.vcloud.api.rest.schema.VmPendingQuestionType getVmQuestion()
throws VCloudException
VmPendingQuestionType
VCloudException
public static com.vmware.vcloud.api.rest.schema.VmPendingQuestionType getVmQuestion(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vmRef -
VmPendingQuestionType
VCloudException
public void answerVmQuestion(int choiceId,
String questionId)
throws VCloudException
choiceId - questionId -
VCloudException
public InputStream getScreen()
throws VCloudException
InputStream
VCloudException
public com.vmware.vcloud.api.rest.schema.ScreenTicketType acquireTicket()
throws VCloudException
ScreenTicketType
VCloudException
public Task installVMwareTools()
throws VCloudException
Task
VCloudException
public Task upgradeHardware()
throws VCloudException
Task
VCloudException
public Task consolidate()
throws VCloudException
Task
VCloudException
public static Task installVMwareTools(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - VcloudClientvmRef - ReferenceType
Task
VCloudException
public static Task upgradeHardware(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - VcloudClientvmRef - ReferenceType
Task
VCloudException
public static Task consolidate(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - VcloudClientvmRef - ReferenceType
Task
VCloudException
public static Task relocate(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef,
com.vmware.vcloud.api.rest.schema.ReferenceType datastoreReference)
throws VCloudException
VMupdateVM(VmType) to relocate vm to a
different StorageProfle. Storage profile can be specified by using VmType
client - VcloudClientvmRef - ReferenceTypedatastoreReference - ReferenceType
Task
VCloudException
public Task relocate(com.vmware.vcloud.api.rest.schema.ReferenceType datastoreReference)
throws VCloudException
VMupdateVM(VmType) to relocate vm to a
different StorageProfle. Storage profile can be specified by using VmType
datastoreReference - ReferenceType
Task
VCloudException
public Task attachDisk(com.vmware.vcloud.api.rest.schema.ReferenceType diskRef)
throws VCloudException
diskRef -
Task
VCloudException
public Task attachDisk(com.vmware.vcloud.api.rest.schema.ReferenceType diskRef,
Integer busNumber,
Integer unitNumber)
throws VCloudException
diskRef - busNumber - unitNumber -
Task
VCloudException
public Task detachDisk(com.vmware.vcloud.api.rest.schema.ReferenceType diskRef)
throws VCloudException
diskRef -
Task
VCloudException
public Task detachDisk(com.vmware.vcloud.api.rest.schema.ReferenceType diskRef,
Integer busNumber,
Integer unitNumber)
throws VCloudException
diskRef - busNumber - unitNumber -
Task
VCloudException
public List<com.vmware.vcloud.api.rest.schema.ReferenceType> getAttachedDisks()
throws VCloudException
List
VCloudException
public Task enableNestedHypervisor()
throws VCloudException
Task
VCloudException
public static Task enableNestedHypervisor(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - VcloudClientvmRef - ReferenceType
Task
VCloudException
public Task disableNestedHypervisor()
throws VCloudException
Task
VCloudException
public static Task disableNestedHypervisor(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - VcloudClientvmRef - ReferenceType
Task
VCloudException
public Task updateHotAdd(boolean memoryHotAdd,
boolean cpuHotAdd)
throws VCloudException
memoryHotAdd - cpuHotAdd -
Task
VCloudException
public static Task updateHotAdd(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef,
boolean memoryHotAdd,
boolean cpuHotAdd)
throws VCloudException
client - VcloudClientvmRef - ReferenceTypememoryHotAdd - cpuHotAdd -
Task
VCloudException
public Task checkCompliance()
throws VCloudException
Task
VCloudException
public static Task checkCompliance(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vmRef -
Task
VCloudException
public com.vmware.vcloud.api.rest.schema.ComplianceResultType complianceResult()
throws VCloudException
ComplianceResultType
VCloudException
public static com.vmware.vcloud.api.rest.schema.ComplianceResultType complianceResult(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vmRef -
ComplianceResultType
VCloudException
public Task reconfigureVM(com.vmware.vcloud.api.rest.schema.VmType vmType)
throws VCloudException
vmType - VmType
TaskType
VCloudException
public com.vmware.vcloud.api.rest.schema.MksTicketType acquireMksTicket()
throws VCloudException
MksTicketType
VCloudException
public com.vmware.vcloud.api.rest.schema.CurrentUsageType getCurrentMetrics(com.vmware.vcloud.api.rest.schema.CurrentUsageSpecType currentUsageSpec)
throws VCloudException
currentUsageSpec - CurrentUsageSpecType
CurrentUsageType instance of metrics for the specified VM
VCloudException
public static com.vmware.vcloud.api.rest.schema.CurrentUsageType getCurrentMetrics(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef,
com.vmware.vcloud.api.rest.schema.CurrentUsageSpecType currentUsageSpec)
throws VCloudException
client - VcloudClientvmRef - ReferenceTypecurrentUsageSpec - CurrentUsageSpecType
CurrentUsageType instance of metrics for the specified VM
VCloudException
public com.vmware.vcloud.api.rest.schema.CurrentUsageType getCurrentMetrics()
throws VCloudException
CurrentUsageType instance of metrics for the specified VM
VCloudException
public static com.vmware.vcloud.api.rest.schema.CurrentUsageType getCurrentMetrics(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - VcloudClientvmRef - ReferenceType
CurrentUsageType instance of metrics for the specified VM
VCloudException
public com.vmware.vcloud.api.rest.schema.HistoricUsageType getHistoricMetrics(com.vmware.vcloud.api.rest.schema.HistoricUsageSpecType historicUsageSpec)
throws VCloudException
historicUsageSpec - HistoricUsageSpecType
HistoricUsageType instance of metrics for the specified VM
VCloudException
public static com.vmware.vcloud.api.rest.schema.HistoricUsageType getHistoricMetrics(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef,
com.vmware.vcloud.api.rest.schema.HistoricUsageSpecType historicUsageSpec)
throws VCloudException
client - VcloudClientvmRef - ReferenceTypehistoricUsageSpec - HistoricUsageSpecType
HistoricUsageType instance of metrics for the specified VM
VCloudException
public com.vmware.vcloud.api.rest.schema.HistoricUsageType getHistoricMetrics()
throws VCloudException
HistoricUsageType instance of metrics for the specified VM
VCloudException
public static com.vmware.vcloud.api.rest.schema.HistoricUsageType getHistoricMetrics(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - VcloudClientvmRef - ReferenceType
HistoricUsageType instance of metrics for the specified VM
VCloudException
public void forceGuestCustomization()
throws VCloudException
VCloudException
public static void forceGuestCustomization(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vmRef -
VCloudException
public Task reloadFromVC()
throws VCloudException
Task
VCloudException
public static Task reloadFromVC(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vmRef)
throws VCloudException
client - vmRef -
Task
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||