.pdf)
WHM Plugins
reboot function from within your custom script:
/xml-api/reboot function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/reboot
reboot function from within your custom script:
/json-api/reboot function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/reboot
reboot function takes the following optional variable as input: 1 — Initiates the forceful reboot.
0 — Initiates a graceful reboot. reboot function. https://example.com:2087/xml-api/reboot in WebHost Manager will produce something similar to:
<reboot>
<reboot>normal</reboot>
</reboot>
https://example.com:2087/json-api/reboot in WebHost Manager will produce output similar to:
{
"reboot":"normal"
}
Calling https://example.com:2087/json-api/reboot?forceful=1 in WebHost Manager will produce output similar to:
{
"reboot":"normal"
}