API Docs

Get to know list_zones

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

list_zones expects no parameters.

Example:

$params = array();
$api->call('cloud.list_zones', $params);

Output:

Array
(
    [42] => Array
        (
            [id] => 11	//the unique ID of the zone
            [name] => Seattle	//the zone name
            [public] => 1  //identifier if zone is public or private, 1 => public , 0 => private.
        )

    [44] => Array
        (
            [id] => 44
            [name] => Phoenix
            [public] => 1
        )

    [45] => Array
        (
            [id] => 45
            [name] => Chicago
            [public] => 1
        )

    [46] => Array
        (
            [id] => 46
            [name] => MyPrivateZone
            [public] => 0
        )
)