Upload Ovf To Create A Vapp Template - VMware VCLOUD API 1.0 - API Programming Manual

Table of Contents

Advertisement

vCloud API Programming Guide
Table 4-1. Summary of Provisioning Requests (Continued)
Operation
Enable a vApp Template for 
Download
Disable a vApp Template 
for Download
Upload a Media Image
Copy or Move a Media 
Image
Copy or Move a vApp 
Template
Copy or Move a vApp
Change the Name or 
Description of a 
vAppTemplate
Change the Name or 
Description of a vApp
Change the Name or 
Description of a Media 
Image
Delete a vAppTemplate, 
vApp, or Media Image
Add an Item to a Catalog
Remove an Item from a 
Catalog
Control Access to Catalogs

Upload OVF to Create a vApp Template

A vCloud API client that has access to an OVF package can use a simple workflow to upload the package and 
create a vApp template.
1
The client POSTs an initial request that specifies a name for the template, a transfer format for the data, 
and an optional description.
2
The server returns an unresolved (status="0") vAppTemplate document that includes an upload URL 
for the OVF package.
3
The client uses an HTTP PUT request to upload the OVF package descriptor (the .ovf file) to the upload 
URL. 
4
The server reads the descriptor and constructs a complete vAppTemplate document (one that includes an 
upload URL for each file listed in the References section of the descriptor). While the server is constructing 
this document, the client makes periodic requests for it and examines the response for additional upload 
URLs. When the response contains any upload URLs beyond the one returned in Step 2, template is 
complete
5
The client uses HTTP PUT requests to upload each of the files.
6
If the OVF package includes a manifest file, the entire upload is validated against the contents of the 
manifest file.
42
Request
POST API‐URL/vAppTemplate/
vAppTemplate‐id/action/enableDownload
POST API‐URL/vAppTemplate/
vAppTemplate‐id/action/disableDownload
POST API‐URL/vdc/id/media
POST API‐URL/vdc/id/action/cloneMedia
POST API‐URL/vdc/id/action/
cloneVAppTemplate
POST API‐URL/vdc/id/action/cloneVApp
PUT API‐URL/vAppTemplate/vappTemplate‐id
PUT API‐URL/vApp/vapp‐id
PUT API‐URL/media/id
DELETE object‐URL
POST API‐URL/catalog/id/catalogItems
DELETE API‐URL/
catalog/id/catalogItem/id
POST
API‐URL/catalog/id/action/
controlAccess
Request Body
None
None
Media
CloneMediaParams
CloneVAppTemplateParams
CloneVAppParams
VAppTemplate
VApp
Media
None
CatalogItem
None
 ControlAccessParams
Response
Task
204 No 
Content
Media
Media
VAppTemplate
VApp
Task
Task
Task
Task
CatalogItem
204 No content
ControlAccess
Params
VMware, Inc.

Advertisement

Table of Contents
loading

Table of Contents