A new version of the API (v4) is available here: developers.linode.com.

linode.disk.createfromdistribution()

Parameters

  • LinodeID - numeric (required)
  • DistributionID - numeric (required) The DistributionID to create this disk from. Found in avail.distributions()
  • Label - string (required) The label of this new disk image
  • Size - numeric (required) Size of this disk image in MB
  • rootPass - string (required) The root (or core) user's password
  • rootSSHKey - string (optional) Optionally sets this string into /root/.ssh/authorized_keys (or /home/core/.ssh/authorized_keys) upon distribution configuration.

Example Response

{
   "ERRORARRAY":[],
   "ACTION":"linode.disk.createFromDistribution",
   "DATA":{
      "JobID":1298,
      "DiskID":55647
   }
}

Errors

NOTFOUND, VALIDATION