Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JSON Request example:

 

Code Block
curl -i -X POST http://onapp.test/vapps/compose.json -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"vapp":{"name":"name","vdc_id":"9", "vapp_template_ids": "[1,2]", "vapp_ids":"[1,2]"}}'

 

Where:

name - the vApp label

vdc_id -  the virtual data center

vapp_template_id - one or several vApp templates. All VSs, built on those templates, will be copied to your new vApp.

vapp_ids - one or several vApps. All VSs within selected vApps will be copied to your new vApp.

or

blank_vapp - put 1 to create a blank vApp.