vCloud API Programming Guide
62 VMware, Inc.
About Instantiation Parameters
InstantiationparametersallowyoutospecifycertainpropertiesofavApp,including:
DetailsofitsvAppnetwork(required).
LeasesettingsforthevApp(optional,ifyouwanttooverrideyourorganization’sdefaults)
StartupandshutdownparametersforthevApp(applicableonlyifthevApphasmultiplechildren)
Instantiationparametersalsoincludeawaytoindicatethatanytermsandconditions(suchaslicense
agreements)containedinthevApphavebeenaccepted.
InstantiationparameterscannotbeusedtomodifyaVmthatappearsinthe
vApp’sChldrencontainer.To
changethepropertiesofaVm,usethereconfigurationlinksinitsItemelements.(See“ReconfiguringvApps
andVirtualMachines”onpage 69.)
About vApp Networks
AvAppnetworkisalogicalnetworkthatdefineshowthevAppconnectstoanorganizationnetworkinthe
targetvDC.ItisspecifiedaspartofaninstantiateVAppTemplateorcomposeVApprequest,createdwhen
thevAppisdeployed,anddeletedwhenthevAppisundeployed.Virtualmachines(Vmelements)in
the
vApp’sChildrencollectionallconnecttothisnetwork,asspecifiedintheirNetworkConnectionelements.
ThedetailsofavAppnetworkarespecifiedintheNetworkConfigelementofthe
InstantiateVAppTemplateParamsrequestbody,andincludethefollowing:
AnameforthevAppnetwork,specifiedinthenetworkNameattributeoftheNetworkConfigelement.If
thetemplatethatyouareinstantiatingincludesanovf:NetworkSectionelement,thevalueofthe
networkNameattributeoftheNetworkConfigelementmustmatchthevalueoftheovf:nameattributeof
theovf:Networkelementinthetemplate.
Ifthetemplatedefinesmultiplenetworks,thenyoumustdo
thesameintheInstantiateVAppTemplateParamsrequest.
AConfigurationelementthatspecifiestheorganizationnetworktowhichthevAppnetworkconnects
andaFenceModevaluethatcontrolshowthosetwonetworksareconnected.
Instantiating a vAppTemplate Using Default Parameters
AninstantiationrequestcansupplyaminimalInstantiateVAppTemplateParamselementtospecifythat
instantiationshouldusethetargetvDC’sdefaultbindings(see“InstantiatingtheTemplateinthevDC”on
page 24).ThistypeofrequestcanbeappropriateforavAppthathassimplerequirementsforstorage,
network,andcomputeresources.AvApp
instantiatedinthiswaycanbereconfiguredifnecessarytocorrect
problemscausedbyadefaultinstantiation.Formoreinformation,see“ReconfiguringvAppsandVirtual
Machines”onpage 69.
Instantiating a vApp Template Using Additional Parameters
IfaclientwantstospecifyvAppinstantiationparametersindetail,ratherthanrelyingonvDCdefaults,itcan
includethedetailsinthebodyoftheinstantiateVAppTemplaterequest.
TheinstantiationrequesttakestheformofaPOSTtoavDC’sinstantiateVAppTemplateURL.Therequest
bodyisanInstantiateVAppTemplateParamselement.
To
obtaintheinformationrequiredinanInstantiateVAppTemplateParamselement,theclientmusttake
severalsteps:
Examinethetemplate’sOVFtodiscoveranyEULAsectionsthatitincludes.The
InstantiateVAppTemplateParamselementcanincludeanAllEULAsAcceptedelementwhosevalue
indicateswhetherallEULAtermsincludedinthetemplatewereaccepted.IfavApptemplateincludes
anyEULAsections,AllEULAsAcceptedmustbesettoavalueoftrue.Otherwise,
instantiationfails.
Examinethetemplate’sovf:StartupSectionelementtoverifythattheprescribedstartuporderfor
childrendoesnotneedtobemodified.