Resource: boot_timestamp
The time when the system last booted
http://{device}/api/npm.reboot/1.1/boot_timestamp
integer
| Property Name | Type | Description | Notes |
|---|---|---|---|
| boot_timestamp | <integer> | The time when the system last booted | Read-only; |
Links
boot_timestamp: get
GET http://{device}/api/npm.reboot/1.1/boot_timestamp
Response Body
Returns a boot_timestamp data object.
Resource: reboot
perform the actual reboot
http://{device}/api/npm.reboot/1.1/reboot
{ }
| Property Name | Type | Description | Notes |
|---|---|---|---|
| reboot | <object> | perform the actual reboot |
Links
reboot: reboot
POST http://{device}/api/npm.reboot/1.1/reboot
Request Body
Do not provide a request body.
Response BodyOn success, the server returns a response body with the following structure:
{ "message": string }
| Property Name | Type | Description | Notes |
|---|---|---|---|
| reboot.links.reboot.response | <object> | ||
| reboot.links.reboot.response.message | <string> | Optional; |
Resource: shutdown
perform the actual shutdown
http://{device}/api/npm.reboot/1.1/shutdown
{ }
| Property Name | Type | Description | Notes |
|---|---|---|---|
| shutdown | <object> | perform the actual shutdown |
Links
shutdown: shutdown
POST http://{device}/api/npm.reboot/1.1/shutdown
Request Body
Do not provide a request body.
Response BodyOn success, the server returns a response body with the following structure:
{ "message": string }
| Property Name | Type | Description | Notes |
|---|---|---|---|
| shutdown.links.shutdown.response | <object> | ||
| shutdown.links.shutdown.response.message | <string> | Optional; |
Resource: uptime
Time in seconds since the last boot
http://{device}/api/npm.reboot/1.1/uptime
integer
| Property Name | Type | Description | Notes |
|---|---|---|---|
| uptime | <integer> | Time in seconds since the last boot | Read-only; |
Links
uptime: get
GET http://{device}/api/npm.reboot/1.1/uptime
Response Body
Returns an uptime data object.