public interface VmApi
Vm
objects.VmAsyncApi
Vm get(String vmUrn)
Vm
.VAppApi.get(String)
Task edit(String vmUrn, Vm vm)
Vm
.VAppApi.edit(String, VApp)
Task remove(String vmUrn)
Vm
.VAppApi.remove(String)
Task consolidate(String vmUrn)
Vm
.
POST /vApp/{id}/action/consolidate
Task deploy(String vmUrn, DeployVAppParams params)
Vm
.VAppApi.deploy(String, DeployVAppParams)
Task deploy(URI vmHref, DeployVAppParams params)
Task discardSuspendedState(String vmUrn)
Vm
.VAppApi.discardSuspendedState(String)
Task installVMwareTools(String vmUrn)
POST /vApp/{id}/action/installVMwareTools
Task relocate(String vmUrn, RelocateParams params)
Vm
.
POST /vApp/{id}/action/relocate
Task relocate(URI vmHref, RelocateParams params)
Task undeploy(String vmUrn, UndeployVAppParams params)
Vm
.VAppApi.undeploy(String, UndeployVAppParams)
Task undeploy(URI vmHref, UndeployVAppParams params)
Task upgradeHardwareVersion(String vmUrn)
POST /vApp/{id}/action/upgradeHardwareVersion
Task powerOff(String vmUrn)
Vm
.VAppApi.powerOff(String)
Task powerOn(String vmUrn)
Vm
.VAppApi.powerOn(String)
Task reboot(String vmUrn)
Vm
.VAppApi.reboot(String)
Task reset(String vmUrn)
Vm
.VAppApi.reset(String)
Task shutdown(String vmUrn)
Vm
.VAppApi.shutdown(String)
Task suspend(String vmUrn)
Vm
.VAppApi.suspend(String)
GuestCustomizationSection getGuestCustomizationSection(String vmUrn)
Vm
.
GET /vApp/{id}/guestCustomizationSection
GuestCustomizationSection getGuestCustomizationSection(URI vmHref)
Task editGuestCustomizationSection(String vmUrn, GuestCustomizationSection section)
Vm
.
PUT /vApp/{id}/guestCustomizationSection
Task editGuestCustomizationSection(URI vmHref, GuestCustomizationSection section)
Task ejectMedia(String vmUrn, MediaInsertOrEjectParams mediaParams)
Vm
.
PUT /vApp/{id}/media/action/ejectMedia
Task ejectMedia(URI vmHref, MediaInsertOrEjectParams mediaParams)
Task insertMedia(String vmUrn, MediaInsertOrEjectParams mediaParams)
Vm
.
PUT /vApp/{id}/media/action/insertMedia
Task insertMedia(URI vmHref, MediaInsertOrEjectParams mediaParams)
NetworkConnectionSection getNetworkConnectionSection(String vmUrn)
Vm
.
GET /vApp/{id}/networkConnectionSection
NetworkConnectionSection getNetworkConnectionSection(URI vmHref)
Task editNetworkConnectionSection(String vmUrn, NetworkConnectionSection section)
Vm
.
PUT /vApp/{id}/networkConnectionSection
Task editNetworkConnectionSection(URI vmHref, NetworkConnectionSection section)
OperatingSystemSection getOperatingSystemSection(String vmUrn)
Vm
.
GET /vApp/{id}/operatingSystemSection
OperatingSystemSection getOperatingSystemSection(URI vmHref)
Task editOperatingSystemSection(String vmUrn, OperatingSystemSection section)
Vm
.
PUT /vApp/{id}/operatingSystemSection
Task editOperatingSystemSection(URI vmHref, OperatingSystemSection section)
ProductSectionList getProductSections(String vmUrn)
Vm
product sections.VAppApi.getProductSections(String)
ProductSectionList getProductSections(URI vmHref)
Task editProductSections(String vmUrn, ProductSectionList sectionList)
Vm
.VAppApi.editProductSections(String, ProductSectionList)
Task editProductSections(URI vmHref, ProductSectionList sectionList)
VmPendingQuestion getPendingQuestion(String vmUrn)
Vm
.
The user should answer to the question by operation
answerQuestion(String, VmQuestionAnswer)
. Usually questions will be asked when the VM
is powering on.
GET /vApp/{id}/question
VmPendingQuestion getPendingQuestion(URI vmHref)
void answerQuestion(String vmUrn, VmQuestionAnswer answer)
Vm
.
The answer IDs of choice and question should match the ones returned from operation
getPendingQuestion(String)
.
POST /vApp/{id}/question/action/answer
void answerQuestion(URI vmHref, VmQuestionAnswer answer)
RuntimeInfoSection getRuntimeInfoSection(String vmUrn)
Vm
.
GET /vApp/{id}/runtimeInfoSection
RuntimeInfoSection getRuntimeInfoSection(URI vmHref)
byte[] getScreenImage(String vmUrn)
Vm
.
The content type of the response may vary (e.g. image/png
, image/gif
).
GET /vApp/{id}/screen
byte[] getScreenImage(URI vmHref)
ScreenTicket getScreenTicket(String vmUrn)
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
ScreenTicket getScreenTicket(URI vmHref)
VirtualHardwareSection getVirtualHardwareSection(String vmUrn)
Vm
.
GET /vApp/{id}/virtualHardwareSection
VirtualHardwareSection getVirtualHardwareSection(URI vmHref)
Task editVirtualHardwareSection(String vmUrn, VirtualHardwareSection section)
Vm
.
PUT /vApp/{id}/virtualHardwareSection
Task editVirtualHardwareSection(URI vmHref, VirtualHardwareSection section)
RasdItem getVirtualHardwareSectionCpu(String vmUrn)
Vm
.
GET /vApp/{id}/virtualHardwareSection/cpu
Task editVirtualHardwareSectionCpu(String vmUrn, RasdItem rasd)
Vm
.
PUT /vApp/{id}/virtualHardwareSection/cpu
RasdItemsList getVirtualHardwareSectionDisks(String vmUrn)
Vm
.
GET /vApp/{id}/virtualHardwareSection/disks
RasdItemsList getVirtualHardwareSectionDisks(URI vmHref)
Task editVirtualHardwareSectionDisks(String vmUrn, RasdItemsList rasdItemsList)
Vm
.
PUT /vApp/{id}/virtualHardwareSection/disks
Task editVirtualHardwareSectionDisks(URI vmHref, RasdItemsList rasdItemsList)
RasdItemsList getVirtualHardwareSectionMedia(String vmUrn)
Vm
.
GET /vApp/{id}/virtualHardwareSection/media
RasdItemsList getVirtualHardwareSectionMedia(URI vmHref)
RasdItem getVirtualHardwareSectionMemory(String vmUrn)
Vm
.
GET /vApp/{id}/virtualHardwareSection/memory
Task editVirtualHardwareSectionMemory(String vmUrn, RasdItem rasd)
Vm
.
PUT /vApp/{id}/virtualHardwareSection/memory
RasdItemsList getVirtualHardwareSectionNetworkCards(String vmUrn)
Vm
.
GET /vApp/{id}/virtualHardwareSection/networkCards
RasdItemsList getVirtualHardwareSectionNetworkCards(URI vmHref)
Task editVirtualHardwareSectionNetworkCards(String vmUrn, RasdItemsList rasdItemsList)
Vm
.
PUT /vApp/{id}/virtualHardwareSection/networkCards
Task editVirtualHardwareSectionNetworkCards(URI vmHref, RasdItemsList rasdItemsList)
RasdItemsList getVirtualHardwareSectionSerialPorts(String vmUrn)
Vm
.
GET /vApp/{id}/virtualHardwareSection/serialPorts
RasdItemsList getVirtualHardwareSectionSerialPorts(URI vmHref)
Task editVirtualHardwareSectionSerialPorts(String vmUrn, RasdItemsList rasdItemsList)
Vm
.
PUT /vApp/{id}/virtualHardwareSection/serialPorts
Task editVirtualHardwareSectionSerialPorts(URI vmHref, RasdItemsList rasdItemsList)
MetadataApi.Writeable getMetadataApi(String vmUrn)
MetadataApi.Writeable getMetadataApi(URI vmHref)
Copyright © 2009-2013 jclouds. All Rights Reserved.