EasyManua.ls Logo

VMware VCLOUD API 1.0 - API

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
vCloud API Programming Guide
42 VMware, Inc.
Upload OVF to Create a vApp Template
AvCloudAPIclientthathasaccesstoanOVFpackagecanuseasimpleworkflowtouploadthepackageand
createavApptemplate.
1TheclientPOSTsaninitialrequestthatspecifiesanameforthetemplate,atransferformatforthedata,
andanoptionaldescription.
2Theserverreturnsan
unresolved(status="0")vAppTemplatedocumentthatincludesanuploadURL
fortheOVFpackage.
3TheclientusesanHTTPPUTrequesttouploadtheOVFpackagedescriptor(the .ovffile)totheupload
URL.
4TheserverreadsthedescriptorandconstructsacompletevAppTemplatedocument(onethatincludesan
uploadURLfor
eachfilelistedintheReferencessectionofthedescriptor).Whiletheserverisconstructing
thisdocument,theclientmakesperiodicrequestsforitandexaminestheresponseforadditionalupload
URLs.WhentheresponsecontainsanyuploadURLsbeyondtheonereturnedinStep2,templateis
complete
5Theclient
usesHTTPPUTrequeststouploadeachofthefiles.
6IftheOVFpackageincludesamanifestfile,theentireuploadisvalidatedagainstthecontentsofthe
manifestfile.
EnableavAppTemplatefor
Download
POSTAPIURL/vAppTemplate/
vAppTemplateid/action/enableDownload
None Task
DisableavAppTemplate
forDownload
POSTAPIURL/vAppTemplate/
vAppTemplateid/action/disableDownload
None 204No
Content
Uploada MediaImage POSTAPIURL/vdc/id/media Media Media
CopyorMoveaMedia
Image
POSTAPIURL/vdc/id/action/cloneMedia CloneMediaParams Media
CopyorMoveavApp
Template
POSTAPIURL
/vdc/id/action/
cloneVAppTemplate
CloneVAppTemplateParams VAppTemplate
CopyorMoveavApp POSTAPIURL/vdc/id/action/cloneVApp CloneVAppParams VApp
ChangetheNameor
Descriptionofa
vAppTemplate
PUTAPIURL/vAppTemplate/vappTemplateid VAppTemplate Task
ChangetheNameor
DescriptionofavApp
PUTAPIURL/vApp/vappid VApp Tas k
ChangetheNameor
DescriptionofaMedia
Image
PUTAPIURL/media/id Media Task
DeleteavAppTemplate,
vApp,orMediaImage
DELETEobjectURL None Task
AddanItemtoaCatalog POSTAPIURL/catalog/id/catalogItems CatalogItem CatalogItem
RemoveanItemfroma
Catalog
DELETEAPIURL/
catalog/id/catalogItem/id
None 204Nocontent
ControlAccesstoCatalogs POST
APIURL/catalog/id/action/
controlAccess
ControlAccessParams ControlAccess
Params
Table 4-1. Summary of Provisioning Requests (Continued)
Operation Request Request Body Response

Table of Contents

Related product manuals