API Docs

Get to know get_recovery_mode_status

Overview: Returns whether or not a virtual machine is in recovery mode.

get_recovery_mode_status expects the following parameters:

  • vm_id – The identifier of the virtual machine in question.

Example:

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

Output:

Array
(
    [status] => 1
    [data]   => 1 //returns 0 for no, 1 for yes
)