5.5

Table Of Contents
1 Enable a vApp or vApp Template for Download on page 69
Before you can download a vApp or vApp template, an administrator or privileged user must
explicitly enable the object for download.
2 Download the OVF Descriptor of a vApp or vApp Template on page 70
To download the OVF descriptor, make a GET request to the download:default URL in the download-
enabled VApp or VAppTemplate element.
3 Download a Referenced File on page 71
After you download the OVF descriptor of a vApp or vApp template, you can examine the contents of
the descriptor to discover download URLs for .vmdk and other files in the package.
Enable a vApp or vApp Template for Download
Before you can download a vApp or vApp template, an administrator or privileged user must explicitly
enable the object for download.
Prerequisites
n
Verify that you are logged in as an administrator or other user who has privileges to enable a vApp or
vApp template for download.
n
Verify that any vApp you plan to enable for download is powered off and undeployed. See “Undeploy,
Power Off, and Delete the vApp,” on page 38.
Procedure
1 Retrieve the XML representation of object to find its action/enableDownload link.
Every VAppTemplate element includes a link of the following form, where id is the id of the template:
<Link
rel="enable"
href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-id/action/enableDownload"/>
Every vApp element includes a similar link:
<Link
rel="enable"
href="https://vcloud.example.com/api/vApp/id/action/enableDownload"/>
2 Enable the object for download.
Make a POST request to the action/enableDownload URL, which you retrieved in Step 1. The response
is a Task that tracks the completion of the enablement operation.
3 When the task completes, retrieve the representation of the object, which now contains a download
URL for the OVF descriptor.
This URL remains valid while a transfer session is in progress, and for a maximum of 60 minutes of
transfer session idle time. A system administrator can change this default value. See “Retrieve or
Update System Settings,” on page 239.
Example: vApp Template with Download URL for OVF Descriptor
Request:
GET https://vcloud.example.com/api/vAppTemplate/vappTemplate-111
Chapter 4 Provisioning an Organization
VMware, Inc. 69