CLI REST-API
reboot
reboot [options]
The "reboot" command schedules a system reboot.
reboot - reboots the LANTIME immediately (in 2 seconds)
reboot [time] - schedules a reboot after [time]
reboot cancel - cancels any scheduled reboot
reboot status - shows the current schedule, i.e. the remaining time
You can specify [time] by either specifying the number of seconds to wait
before the reboot sequence is started or specify it in minutes, hours or days.
Examples:
"reboot 10m"
will reboot the system in 10 minutes from now (you can cancel this
with "reboot cancel")
"reboot 1h 30m"
will reboot the system in one hour and thirty minutes, "reboot cancel" will
cancel this
RESTAPI: The data can be passed in the body like this:
{
"parameters": {
"options": "status"
}
}
Name | Value | Description | Example |
---|
| [time]|cancel|status | | 60 |
REST-API Support:
This command is supported by the REST API:
Method: PUT
URL: /api/reboot
Body:
{
"parameters": {
"options": [[time]|cancel|status]
}
}
Example using curl:
curl -X PUT /api/reboot -d
"{
\"parameters\": {
\"options\": \"status\"
}
}"