API Docs

Get to know list_vms

Overview: Returns identifying information about a customer's Ubiquity Cloud VMs.

list_vms expects no parameters:


NOTE: Output is of the format [data][service_id][] = vm_id.

Example:

$api->call(cloud.list_vms);

Output:

Array
(
    [64791] => Array
        (
            [41] => Array
                (
                    [0] => Array
                        (
                            [vm_id] => 3530
                            [service_id] => 64791
                            [zone_id] => 41
                            [flavor_id] => 1
                            [mainipaddress] => 23.108.36.181
                            [ipaddresses] => 23.108.36.181
                            [internalips] => 10.0.2.7
                            [type] => qemu
                            [state] => disabled
                            [bandwidth] => 1099511627776, 0, 1099511627776, 0
                            [memory] => 1073741824
                            [hdd] => 26843545600
                            [trafficgraph] =>
                            [loadgraph] =>
                            [memorygraph] =>
                            [hostname] => 64791.ubiquityhosting.com
                            [template] => CentOs 6 x64
                            [mac] => fa:16:3e:17:30:e5
                            [swap-burst] =>
                            [zone_name] => Los Angeles
                            [template_id] => 1
                            [rootpassword] => XIEs71el!n9
                            [vncip] =>
                            [vncport] => 0
                            [vncpassword] =>
                            [order_id] => 109
                            [in_recovery] => 0
                            [locked] => 0
                            [locked_reason] =>
                        )
                )
        )
)