ServerMania logo

Add New ISO

To add a new ISO, use the following request:

POST /template_isos.xml
POST /template_isos.json

XML Request Example

curl -i -X POST -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'  --url http://test/template_isos.xml  -d '<image_template_iso><make_public>1</make_public><label>test 1</label> <min_memory_size>320</min_memory_size><version>1.0</version><operating_system>Linux</operating_system> <operating_system_distro>Fedore</operating_system_distro><virtualization type="array"><virtualization>xen</virtualization><virtualization >kvm</virtualization></virtualization><min_disk_size>20<min_disk_size><allowed_hot_migrate>true</allowed_hot_migrate><file_url></file_url></image_template_iso>'

JSON Request Example

curl -i -X POST -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'  --url http://test/template_isos.json  -d '{"image_template_iso": {"make_public": "1", "label": "test 1", "min_memory_size": "320", "version": "1.0", "operating_system": "Linux", "operating_system_distro": "Fedore", "virtualization": ["xen", "kvm"], "min_disk_size":"6","allowed_hot_migrate": true, "file_url": ""}}'


make_public - whether the ISO will be available to all users

label - the ISO title

min_memory_size - minimum memory size required to build a VS on this ISO (MB)

version - version of the file

operating_system - operating system name

operating_systen_distro - type in the operating system distribution in free form

virtualization - type of virtualization (xen, kvm or kvm_virtio) which is compatible with this ISO

min_disk_size - the minimum disk size required to build a VS on this ISO (GB)

file_url - the URL from which a file with the .iso extension is to be uploaded

allowed_hot_migrate - set true to enable hot migration for VS created from this ISO

Page History


  • added allowed_hot_migrate parameter