Server Create VM

From INAP Dropzone API
Revision as of 17:25, 14 June 2012 by Marc Bollinger (Talk | contribs)
Jump to: navigation, search

The server create VM command

Contents

Path

  • /server/createvm

Method

Availability

Required Data Parameters


  • {$hostname}: The hostname of new virtual machine, it must be unique and not currently in use on any other server or virtual machine in LEAP.
  • {$osid}: The operating system that will be installed on the virtual machine, all operating systems available will be returned by using the list snapshots command.
  • {$ips}: The number of IP addresses to be assigned to the virtual machine in cidr format (30 = 1 Usable, 29 = 5 Usable, 28 = 13 Usable, 27 = 29 Usable)
  • {$storagetype}: The type of storage that the virtual machine will use (canopy = cloud storage, local = servers local hard drive).
  • {$memory}: The amount of RAM assigned to the virtual machine in kilobytes, it must be greater than 512 MB (524,288 KB).
  • {$storage}: The amount of storage space assigned to the virtual machine in kilobytes, must be greater than 10GB (10,485,760 KB).
  • {$priority}: The CPU priority for the virtual machine (1 – 100)%.
  • {$cpu_allocation}: How vcpus/priority should be applied to a new virtual machine.

Optional Data Parameters

  • None

Returned Data

stdClass Object(
  [success] => TRUE/FALSE
  [data] => stdClass Object(
    [vmid] => The server ID of the new VM.
  )
)
Personal tools