API Docs

Get to know list_images

Overview: Lists the available images you are able to use.

list_images has these optional parameters.

  • zone_id - When sent with the call, only the images available on the zone specified will be listed.

Example:

$params = array(
	'zone_id' => 1  // optional parameter
	);

$api->call('cloud.list_images', $params);

Output:

Array
(
    [status] => 1
    [data] => Array
(
    [1] => Array
        (
            [id] => 1 //the unique ID of the image
            [name] => CentOs 6 x64 //the name of the image
            [cost] => 0.00 //the cost of the image
            [disk] => 10 //the minimum required disk
            [ram] => 512 //the minimum required ram
            [ips] => 1 //the minimum required ips
        )

    [3] => Array
        (
            [id] => 3
            [name] => Windows 2008 Standard R2 x64
            [cost] => 20.00
            [disk] => 10
            [ram] => 2048
            [ips] => 1
        )
    )
)