EasyManua.ls Logo

VMware VCLOUD API 1.0 - API

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
vCloud API Programming Guide
80 VMware, Inc.
<Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml"
href="http://vcloud.example.com/api/v1.0/vApp/vm-12/
guestCustomizationSection/"/>
</GuestCustomizationSection>
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... operation="Updating Virtual Application Win2K3 (12)" ...>
...
</Task>
View or Modify Groups of Related Sections in a Vm
AsshowninExample 512onpage 75,Linkelementsfordisks,mediadevices,andnetworkcardsaregrouped
attheendoftheVirtualHardwareSection.Theselinkshavecontenttype
application/vnd.vmware.vcloud.rasdItemsList+xml,andreferenceaRasdItemsListelementinthe
VirtualHardwareSectionofaVm.ThevCloudAPIusestheRasdItemsListelementto
aggregaterelated
elementsinaVirtualHardwareSection.ThissimplifiesretrievalandmodificationofItemelementsthatare
typicallyviewedormodifiedasagroup.Toretrieveoneoftheseelements,usethelinkwhererel="down".To
modifyit,usethelinkwhererel="edit".
Deploying and Controlling vApps and Virtual Machines
AvApporVmbodyreturnedinresponsetoaGET,PUT,orPOSTrequestincludesanumberofactionlinks,
whichhavetheformvApporVmURL/action/actionname.Aclientcanuseactionlinkstorequestvarious
actionsonthevApp.Onlythoseactionlinksthatare
validforthevApporvirtualmachineinitscurrentstate
arereturned.Forexample,ifavAppisinstantiatedbutnotdeployed,onlythelinksfordeployandremove
arereturned.ForavAppthatispoweredon,linksforallactionsexceptpowerOnarereturned(seeExample 28
on
page 27).
SomeoftherequestsdocumentedinthissectionapplyonlytovApps,othersapplyonlytovirtualmachines
(Vmobjects),andothersapplytoboth.
ArequestmadetoavAppURLinvokestherequestedoperationoneachofthevirtualmachinesinthe
ChildrenelementofthevApp,intheorderspecifiedinitsovf:StartupSectionelement.Thiselement,
ifpresent,specifiesastartorderandrelatedpropertiesforeachmemberofaVirtualSystemCollection
(each
VmintheChildrencollection).Iftheelementisnotpresent,allmembersarestartedupatthesame
time.Thesamelogicappliestoshutdown,reboot,andsimilaroperations.Formoreinformation,seethe
OVFspecification,availableat
http://www.dmtf.org/standards/published_documents/DSP0243_1.0.0.pdf.
ArequestmadetoaVmURLaffectsonlythatvirtualmachine.
Deploy a vApp or Virtual Machine
TodeployavApp,theclientmakesarequesttoitsaction/deployURL.DeployingavAppautomatically
deploysallofthevirtualmachinesitcontains.
Todeployavirtualmachine,theclientmakesarequesttoitsaction/deployURL.DeployingaVmimplicitly
deploystheparentvAppifthatvAppis
notalreadydeployed.
TherequestbodyineachcaseisaDeployVAppParamselement.
N
OTEMediadevicesarereadonly,sotheyhavenorel="edit"link.Formoreinformation,see“ListMedia
DevicesofaVirtualMachine”onpage 85.

Table of Contents

Related product manuals