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 5‐12onpage 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,
whichhavetheformvApp‐or‐Vm‐URL/action/action‐name.Aclientcanuseactionlinkstorequestvarious
actionsonthevApp.Onlythoseactionlinksthatare
validforthevApporvirtualmachineinitscurrentstate
arereturned.Forexample,ifavAppisinstantiatedbutnotdeployed,onlythelinksfordeployandremove
arereturned.ForavAppthatispoweredon,linksforallactionsexceptpowerOnarereturned(seeExample 2‐8
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
OTEMediadevicesareread‐only,sotheyhavenorel="edit"link.Formoreinformation,see“ListMedia
DevicesofaVirtualMachine”onpage 85.