5.5

Table Of Contents
Retrieving the Upload URL for the OVF Descriptor
After the vApp template and corresponding catalog item have been created, you must retrieve the template
to get the upload URL for the OVF descriptor.
Procedure
1 Examine the CatalogItem returned by the upload request to find the reference to the new vApp
template.
The reference is the value of the href attribute of the Entity element, as shown here.
<Entity
href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-111"
type="application/vnd.vmware.vcloud.vAppTemplate+xml"
name="Ubuntu vApp Template" />
2 Retrieve the VAppTemplate.
See the request portion of “Example: OVF Descriptor Upload URL in a vAppTemplate,” on page 62.
3 Examine the template to find the upload URL for the OVF descriptor.
These URLs are contained in Link elements where rel="upload:default".
Example: OVF Descriptor Upload URL in a vAppTemplate
This request uses the vApp template URL referenced in the Entity element shown in the response portion of
“Example: Initiating the Upload,” on page 61.
Request:
GET https://vcloud.example.com/api/vAppTemplate/vappTemplate-111
Response:
200 OK
Content-Type: application/vnd.vmware.vcloud.vAppTemplate+xml
...
<VAppTemplate
xmlns="http://www.vmware.com/vcloud/v1.5"
xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
ovfDescriptorUploaded="true"
goldMaster="false"
status="0"
name="Ubuntu Template"
id="urn:vcloud:vapptemplate:111"
href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-111"
type="application/vnd.vmware.vcloud.vAppTemplate+xml">
<Link
rel="up"
type="application/vnd.vmware.vcloud.vdc+xml"
href="https://vcloud.example.com/api/vdc/5"/>
<Link
rel="remove"
href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-111" />
<Description>Ubuntu vApp Template</Description>
<Files>
<File
name="descriptor.ovf"
vCloud API Programming Guide
62 VMware, Inc.