Disk Image API Reference¶
Methods¶
-
hosting.image.info(apikey, image)¶ Get information about a disk image.
Parameters: - apikey (string) – API connection key
- image (int) – disk image unique identifier
Returns: struct –
disk image information
-
hosting.image.list(apikey[, opts=nil])¶ List available disk images.
Parameters: - apikey (string) – API connection key
- opts (struct) –
Filtering options
Returns: list of struct –
list of images
Parameters¶
Image¶parameter of
hosting.image.info()andimage.info()
ImageArch¶used by
ImageListOptionsandImageReturn
Name Description x86-32 32-bit processor using x86 instruction set. x86-64 64-bit processor using x86 instruction set.
ImageListOptions¶parameter of
hosting.image.list()andimage.list()
Name Default Type Mandatory datacenter_idint no idof thedatacenterwhere the image is availableitems_per_page 100 int no number of items returned for the pagination label string no name of the image os_archstring no Supported Processor Architecture for the Operating System page 0 int no page number for pagination offset sort_by string no used to sort returned items: datacenter_id, label, os_arch, system, visibility systemstring no visibilitystring no all,beta,deprecated
ImageVisibility¶used by
ImageListOptionsandImageReturn
Name Description all Those images will reviced regular update beta Those images are in beta will be ‘all’ after some time deprecated Those images don’t reviced any update
OperatingSystem¶used by
ImageListOptionsandImageReturn
Name Description Debian - Ubuntu - CentOS - FreeBSD - Other -
Returns¶
ImageReturn¶returned by
hosting.image.info(),hosting.image.list(),image.info()andimage.list()Changed in version 3.3.34: key
addhas changed.
addsystem and version fields.
Name Type author_id int datacenter_id int idof thedatacenterwhere the image is availabledate_created dateTime.iso8601 date_updated dateTime.iso8601 disk_id int idof thediskwhere the image is availableid int unique identifier of the image kernel_version string version of the operating system kernellabel string name of the image os_archstring target cpu architecture of the image size int disk size of the image in megabytes systemstring Systemtype of the systemversion string string corresponding to the version of the system visibilitystring all,beta,deprecated