ServerMania logo

Upload OVA

To add a new OVA, use the following request:

POST /template_ovas.xml
POST /template_ovas.json

XML Request Example

curl -i -X POST -u user:userpass --url http://test/template_ovas.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<image_template_ova><label>MyOVA</label><version>7.5</version><min_memory_size>512</min_memory_size><backup_server_id>2</backup_server_id><file_url>https://sourceforge.net/projects/virtualappliances/files/Linux/CentOS/CentOS-6.4-i386-minimal.ova</file_url></image_template_ova>'

JSON Request Example

curl -i -X POST -u user:userpass --url http://test/template_ovas.json -H 'Accept:application/json' -H 'Content-type: application/json' -d '{"image_template_ova": {"label": "MyOVA","version": "7.5", "min_memory_size": "512", "backup_server_id": "2", "file_url":"https://sourceforge.net/projects/virtualappliances/files/Linux/CentOS/CentOS-6.4-i386-minimal.ova"}}'

Where: 

label* - the title of the OVA file

version* - the version of the OVA file

min_memory_size* - the minimum memory size required to build VS from this OVA template (MB). It is not possible to set the memory size less than the RAM set in the OVA file itself.

backup_server_id* - the ID of the backup server where OVA is stored

file_url* - the URL from which the OVA file can be uploaded


Page History

v.5.7

  • removed the following parameters:
    • operating_system

    • operating_system_distro

    • make_public

    • allowed_hot_migrate

    • virtualization

v.5.5

  • added the allowed_hot_migrate parameter

  • removed the min_disk_size parameter