Description

This function reboots the server.

Examples 


https://hostname.example.com:2087/cpsess##########/json-api/reboot?force=0
https://hostname.example.com:2087/cpsess##########/xml-api/reboot?force=0
whmapi0 reboot force=0

{
   "reboot":"normal"
}
<reboot>
    <reboot>normal</reboot>
</reboot>

   

Parameters

ParameterTypeDescriptionPossible valuesExample
forceBoolean

Whether to use a forceful reboot.

A forceful reboot may result in data loss if there are active processes.

  • 1 — Use a forceful reboot.
  • 0 — Do not use a forceful reboot.
 0

 

Returns

ReturnTypeDescriptionPossible valuesExample

reboot

string

The server's hostname.

 

normal

normal