API Docs

Get to know get

Overview: Returns information about the provided VM.

get expects the following parameters:

  • vm_id – The identifier of the virtual machine in question.
  • service_id *optional* – If no vm_id is available, you can pass the service_id only, and if a VM exists with that service, it will be returned.

Example:

$params = array(
	    'vm_id' => 1
);
$api->call('cloud.get', $params);

Output:

Array(
    [status] => 1
    [data] => Array(
Array(
    [id] => 1
    [ip_address] => 108.62.206.37
    [power_status] => online
    [hdd] => 21474836480
    [ram] => 2147483648
…
)
        )