VMware, Inc. 47
Chapter 4 Provisioning
Response:
200 OK
View the OVF Descriptor of a vApp Template
TherepresentationofaresolvedvApptemplateincludesalinktoitsOVFdescriptor.
<Link rel="ovf" type="text/xml"
href="http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-268/ovf"/>
AGETrequestspecifyingtheURLinthehrefvalueofthisLinkreturnsthedescriptor,asshownin
Example 4‐9.OnlyresolvedVAppTemplateelementsincludethislink.TogettheOVFdescriptorthatdefines
avApporvirtualmachine,youmuststartwiththetemplatefromwhichitwas
created.
WhenyouviewtheOVFdescriptorofavApptemplate,itincludesdeployment‐specificinformation.
Example 4-9. View the OVF Descriptor of a vApp Template
Request:
GET http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-268/ovf
Response:
200 OK
Content-Type text/xml
...
<Envelope ...>
<DiskSection>
<Info>Virtual disk information</Info>
<Disk ovf:capacity="100" ovf:capacityAllocationUnits="byte * 2^20" ovf:diskId="vmdisk1"
ovf:fileRef="file1"
ovf:format="http://www.vmware.com/interfaces/specifications/
vmdk.html#streamOptimized"/>
</DiskSection>
<VirtualSystem ... ovf:id="Ubuntu Template">
...
</VirtualSystem>
</Envelope>
Download a vApp Template as OVF
AvAppTemplatecanbedownloadedasanOVFpackage.Afterlocatingthetemplatebybrowsingacatalog
orvDC,aclientcanrequestthatthetemplatebeenabledfordownload.Thisoperationconstructsadownload
URLforthetemplate’sOVFdescriptorfileandaddsittothetemplate.Aclientcan
downloadthedescriptor
fromthisURL,examineittodiscoverthedownloadURLsofthefilesitreferences,thenmakeaseriesofGET
requeststhatdownloadthefilesthemselves.
WhenyoudownloadavApptemplateasOVF,alldeployment‐specificinformationisremovedfromtheOVF.
N
OTETheOVFdescriptordoesnotincludeanyFilereferences.Theseareremovedbytheserverafterthe
templateisresolvedandrecreatedwhenthetemplateisenabledfordownload.