Add vApp to Catalog

Ensure that FullControl or Change access rights for a user or group are applied to the Catalog at the vCloud side before adding vApp to catalog.

To add a vApp to catalog, use the following request:

1
2
POST /vapps/:vapp_id/conversion.xml
POST /vapps/:vapp_id/conversion.json

XML Request Example

1
curl -i -X POST -u user:userpass -H 'Accept: application/xml' -H 'Content-Type: application/xml' http://onapp.test/vapps/12/conversion.xml -d '<vcloud-vapp-template><catalog>1</catalog><overwrite-catalog-item>1</overwrite-catalog-item><label>vApp_system_111</label><description>test</description><target-vapp-template>1</target-vapp-template></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/vapps/12/conversion.json -d '{"vcloud_vapp_template":{"catalog":"1","overwrite_catalog_item":"1","label":"vApp_system_111","description":"test","target_vapp_template":"1"}}'

Where:

catalog - choose the catalog to which the vApp will be added.

overwrite-catalog-item - set “1” to save this vApp as a template instead of another vApp template; otherwise, set “0.”

label - specify the name of the vApp. This parameter is applicable only when the overwrite-catalog-item parameter is set to “0.”

description - add the appropriate vApp description.

target-vapp-template - choose the appropriate vApp template, which will be replaced. This parameter is applicable only when the overwrite-catalog-item parameter is set to “1.”