public interface VmClient
Vm
objects.VmAsyncClient
Modifier and Type | Method and Description |
---|---|
void |
answerQuestion(URI vmURI,
VmQuestionAnswer answer)
Answer a pending question on a
Vm . |
Task |
consolidateVm(URI vmURI)
Consolidates a
Vm . |
Task |
deleteVm(URI vmURI)
Deletes a
Vm . |
Task |
deploy(URI vmURI,
DeployVAppParams params)
Deploys a
Vm . |
Task |
discardSuspendedState(URI vmURI)
Discard suspended state of a
Vm . |
Task |
ejectMedia(URI vmURI,
MediaInsertOrEjectParams mediaParams)
Ejects media from a
Vm . |
GuestCustomizationSection |
getGuestCustomizationSection(URI vmURI)
Retrieves the guest customization section of a
Vm . |
MetadataClient.Writeable |
getMetadataClient()
Synchronous access to
Vm Metadata features. |
NetworkConnectionSection |
getNetworkConnectionSection(URI vmURI)
Retrieves the network connection section of a
Vm . |
OperatingSystemSection |
getOperatingSystemSection(URI vmURI)
Retrieves the operating system section of a
Vm . |
VmPendingQuestion |
getPendingQuestion(URI vmURI)
Retrieves a pending question for a
Vm . |
ProductSectionList |
getProductSections(URI vmURI)
Retrieves
Vm product sections. |
RuntimeInfoSection |
getRuntimeInfoSection(URI vmURI)
Retrieves the runtime info section of a
Vm . |
byte[] |
getScreenImage(URI vmURI)
Retrieves the thumbnail of the screen of a
Vm . |
ScreenTicket |
getScreenTicket(URI vmURI)
Retrieve a screen ticket for remote console connection to a
Vm . |
VirtualHardwareSection |
getVirtualHardwareSection(URI vmURI)
Retrieves the virtual hardware section of a
Vm . |
RasdItem |
getVirtualHardwareSectionCpu(URI vmURI)
Retrieves the CPU properties in virtual hardware section of a
Vm . |
RasdItemsList |
getVirtualHardwareSectionDisks(URI vmURI)
Retrieves a list of items for disks from virtual hardware section of a
Vm . |
RasdItemsList |
getVirtualHardwareSectionMedia(URI vmURI)
Retrieves the list of items that represents the floppies and CD/DVD drives in a
Vm . |
RasdItem |
getVirtualHardwareSectionMemory(URI vmURI)
Retrieves the item that contains memory information from virtual hardware section of a
Vm . |
RasdItemsList |
getVirtualHardwareSectionNetworkCards(URI vmURI)
Retrieves a list of items for network cards from virtual hardware section of a
Vm . |
RasdItemsList |
getVirtualHardwareSectionSerialPorts(URI vmURI)
Retrieves a list of items for serial ports from virtual hardware section of a
Vm . |
Vm |
getVm(URI vmURI)
Retrieves a
Vm . |
Task |
insertMedia(URI vmURI,
MediaInsertOrEjectParams mediaParams)
Insert media into a
Vm . |
Task |
installVMwareTools(URI vmURI)
Installs VMware tools to the virtual machine.
|
Task |
modifyGuestCustomizationSection(URI vmURI,
GuestCustomizationSection section)
Modifies the guest customization section of a
Vm . |
Task |
modifyNetworkConnectionSection(URI vmURI,
NetworkConnectionSection section)
Modifies the network connection section of a
Vm . |
Task |
modifyOperatingSystemSection(URI vmURI,
OperatingSystemSection section)
Modifies the operating system section of a
Vm . |
Task |
modifyProductSections(URI vmURI,
ProductSectionList sectionList)
Modifies the product section information of a
Vm . |
Task |
modifyVirtualHardwareSection(URI vmURI,
VirtualHardwareSection section)
Modifies the virtual hardware section of a
Vm . |
Task |
modifyVirtualHardwareSectionCpu(URI vmURI,
RasdItem rasd)
Modifies the CPU properties in virtual hardware section of a
Vm . |
Task |
modifyVirtualHardwareSectionDisks(URI vmURI,
RasdItemsList rasdItemsList)
Modifies the disks list in virtual hardware section of a
Vm . |
Task |
modifyVirtualHardwareSectionMemory(URI vmURI,
RasdItem rasd)
Modifies the memory properties in virtual hardware section of a
Vm . |
Task |
modifyVirtualHardwareSectionNetworkCards(URI vmURI,
RasdItemsList rasdItemsList)
Modifies the network cards list in virtual hardware section of a
Vm . |
Task |
modifyVirtualHardwareSectionSerialPorts(URI vmURI,
RasdItemsList rasdItemsList)
Modifies the serial ports list in virtual hardware section of a
Vm . |
Task |
modifyVm(URI vmURI,
Vm vm)
Modifies the name/description of a
Vm . |
Task |
powerOff(URI vmURI)
Powers off a
Vm . |
Task |
powerOn(URI vmURI)
Powers on a
Vm . |
Task |
reboot(URI vmURI)
Reboots a
Vm . |
Task |
relocateVm(URI vmURI,
RelocateParams params)
Relocates a
Vm . |
Task |
reset(URI vmURI)
Resets a
Vm . |
Task |
shutdown(URI vmURI)
Shuts down a
Vm . |
Task |
suspend(URI vmURI)
Suspends a
Vm . |
Task |
undeploy(URI vmURI,
UndeployVAppParams params)
Undeploy a
Vm . |
Task |
upgradeHardwareVersion(URI vmURI)
Upgrade virtual hardware version of a VM to the highest supported virtual
hardware version of provider vDC where the VM locates.
|
Vm getVm(URI vmURI)
Vm
.VAppClient.getVApp(URI)
Task modifyVm(URI vmURI, Vm vm)
Vm
.VAppClient.modifyVApp(URI, VApp)
Task deleteVm(URI vmURI)
Vm
.VAppClient.deleteVApp(URI)
Task consolidateVm(URI vmURI)
Vm
.
POST /vApp/{id}/action/consolidate
Task deploy(URI vmURI, DeployVAppParams params)
Vm
.VAppClient.deploy(URI, DeployVAppParams)
Task discardSuspendedState(URI vmURI)
Vm
.VAppClient.discardSuspendedState(URI)
Task installVMwareTools(URI vmURI)
POST /vApp/{id}/action/installVMwareTools
Task relocateVm(URI vmURI, RelocateParams params)
Vm
.
POST /vApp/{id}/action/relocate
Task undeploy(URI vmURI, UndeployVAppParams params)
Vm
.VAppClient.undeploy(URI, UndeployVAppParams)
Task upgradeHardwareVersion(URI vmURI)
POST /vApp/{id}/action/upgradeHardwareVersion
Task powerOff(URI vmURI)
Vm
.VAppClient.powerOff(URI)
Task powerOn(URI vmURI)
Vm
.VAppClient.powerOn(URI)
Task reboot(URI vmURI)
Vm
.VAppClient.reboot(URI)
Task reset(URI vmURI)
Vm
.VAppClient.reset(URI)
Task shutdown(URI vmURI)
Vm
.VAppClient.shutdown(URI)
Task suspend(URI vmURI)
Vm
.VAppClient.suspend(URI)
GuestCustomizationSection getGuestCustomizationSection(URI vmURI)
Vm
.
GET /vApp/{id}/guestCustomizationSection
VAppClient#
Task modifyGuestCustomizationSection(URI vmURI, GuestCustomizationSection section)
Vm
.
PUT /vApp/{id}/guestCustomizationSection
Task ejectMedia(URI vmURI, MediaInsertOrEjectParams mediaParams)
Vm
.
PUT /vApp/{id}/media/action/ejectMedia
Task insertMedia(URI vmURI, MediaInsertOrEjectParams mediaParams)
Vm
.
PUT /vApp/{id}/media/action/insertMedia
NetworkConnectionSection getNetworkConnectionSection(URI vmURI)
Vm
.
GET /vApp/{id}/networkConnectionSection
Task modifyNetworkConnectionSection(URI vmURI, NetworkConnectionSection section)
Vm
.
PUT /vApp/{id}/networkConnectionSection
OperatingSystemSection getOperatingSystemSection(URI vmURI)
Vm
.
GET /vApp/{id}/operatingSystemSection
Task modifyOperatingSystemSection(URI vmURI, OperatingSystemSection section)
Vm
.
PUT /vApp/{id}/operatingSystemSection
ProductSectionList getProductSections(URI vmURI)
Vm
product sections.VAppClient.getProductSections(URI)
Task modifyProductSections(URI vmURI, ProductSectionList sectionList)
Vm
.VAppClient.modifyProductSections(URI, ProductSectionList)
VmPendingQuestion getPendingQuestion(URI vmURI)
Vm
.
The user should answer to the question by operation answerQuestion(URI, VmQuestionAnswer)
.
Usually questions will be asked when the VM is powering on.
GET /vApp/{id}/question
void answerQuestion(URI vmURI, VmQuestionAnswer answer)
Vm
.
The answer IDs of choice and question should match the ones returned from operation getPendingQuestion(URI)
.
POST /vApp/{id}/question/action/answer
RuntimeInfoSection getRuntimeInfoSection(URI vmURI)
Vm
.
GET /vApp/{id}/runtimeInfoSection
byte[] getScreenImage(URI vmURI)
Vm
.
The content type of the response may vary (e.g. image/png
, image/gif
).
GET /vApp/{id}/screen
ScreenTicket getScreenTicket(URI vmURI)
Vm
.
A screen ticket is a string that includes the virtual machine's IP address, its managed object reference, and a string
that has been encoded as described in RFC 2396. Each VM element in a vApp includes a link where rel="screen:acquireTicket".
You can use that link to request a screen ticket that you can use with the vmware-vmrc utility to open a VMware Remote
Console for the virtual machine represented by that VM element. The vApp should be running to get a valid screen ticket.
GET /vApp/{id}/screen/action/acquireTicket
VirtualHardwareSection getVirtualHardwareSection(URI vmURI)
Vm
.
GET /vApp/{id}/virtualHardwareSection
Task modifyVirtualHardwareSection(URI vmURI, VirtualHardwareSection section)
Vm
.
PUT /vApp/{id}/virtualHardwareSection
RasdItem getVirtualHardwareSectionCpu(URI vmURI)
Vm
.
GET /vApp/{id}/virtualHardwareSection/cpu
Task modifyVirtualHardwareSectionCpu(URI vmURI, RasdItem rasd)
Vm
.
PUT /vApp/{id}/virtualHardwareSection/cpu
RasdItemsList getVirtualHardwareSectionDisks(URI vmURI)
Vm
.
GET /vApp/{id}/virtualHardwareSection/disks
Task modifyVirtualHardwareSectionDisks(URI vmURI, RasdItemsList rasdItemsList)
Vm
.
PUT /vApp/{id}/virtualHardwareSection/disks
RasdItemsList getVirtualHardwareSectionMedia(URI vmURI)
Vm
.
GET /vApp/{id}/virtualHardwareSection/media
RasdItem getVirtualHardwareSectionMemory(URI vmURI)
Vm
.
GET /vApp/{id}/virtualHardwareSection/memory
Task modifyVirtualHardwareSectionMemory(URI vmURI, RasdItem rasd)
Vm
.
PUT /vApp/{id}/virtualHardwareSection/memory
RasdItemsList getVirtualHardwareSectionNetworkCards(URI vmURI)
Vm
.
GET /vApp/{id}/virtualHardwareSection/networkCards
Task modifyVirtualHardwareSectionNetworkCards(URI vmURI, RasdItemsList rasdItemsList)
Vm
.
PUT /vApp/{id}/virtualHardwareSection/networkCards
RasdItemsList getVirtualHardwareSectionSerialPorts(URI vmURI)
Vm
.
GET /vApp/{id}/virtualHardwareSection/serialPorts
Task modifyVirtualHardwareSectionSerialPorts(URI vmURI, RasdItemsList rasdItemsList)
Vm
.
PUT /vApp/{id}/virtualHardwareSection/serialPorts
MetadataClient.Writeable getMetadataClient()
Vm
Metadata
features.Copyright © 2009-2012 jclouds. All Rights Reserved.