API Docs

Get to know reset_password

Overview: Attempts to reset the root password on the given VM.

reset_password expects the following parameters:

  • vm_id – The identifier of the cloud and vm.

Example:

$params = array(
        'vm_id' => 1
);

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

Output:

array(3) {
  ["status"]=>
  string(7) "success"
  ["statusmsg"]=>
  string(36) "Virtual server root password changed"
  ["rootpassword"]=>
  string(10) "IXBnx!47!5"
}