Create vApp Template (Add to Catalog)

To create a vApp template, use the following request:

1
2
POST /catalogs/:id/vapp_templates.xml
POST /catalogs/:id/vapp_templates.json

XML Request Example

1
curl -i -X POST -u user:userpass -H 'Accept: application/xml' -H 'Content-Type: application/xml' http://onapp.test/catalogs/12/vapp_templates.xml -d '<vcloud_vapp_template><label>Template</label><ovf_url>url</ovf_url></vcloud_vapp_template>'

JSON Request Example

1
curl -i -X POST -u user:userpass -H 'Accept: application/json' -H 'Content-Type: application/json' http://onapp.test/catalogs/12/vapp_templates.json -d '{"vcloud_vapp_template":{"label":"Template","ovf_url":"url"}}'

Where:

label - the name of the vApp template

ovf_url - the link to the vApp template

or

folder - path where the vApp template is situated