Users Manual

Query Parameters
format (string) return log as JSON or raw (one of json, raw; default: json) (op-
tional)
limit (integer) limit to last x lines in JSON format (default: 100) (optional)
Response Headers
Content-Type text/plain application/json
Status Codes
200 OK successful operation (returns Log)
404 Not Found log not found
Referenced Data Models
Log (Section 8.2.3)
GET /system
Get system information on sensor.
Template request
GET /api/v1/system HTTP/1.1
Host: <rcvisard>
Sample response
HTTP/1.1 200 OK
Content-Type: application/json
{
"firmware": {
"active
_
image": {
"image
_
version": "rc
_
visard
_
v1.1.0"
},
"fallback
_
booted": true,
"inactive
_
image": {
"image
_
version": "rc
_
visard
_
v1.0.0"
},
"next
_
boot
_
image": "active
_
image"
},
"hostname": "rc-visard-02873515",
"link
_
speed": 1000,
"mac": "00:14:2D:2B:D8:AB",
"ntp
_
status": {
"accuracy": "48 ms",
"synchronized": true
},
"ptp
_
status": {
"master
_
ip": "",
"offset": 0,
"offset
_
dev": 0,
"offset
_
mean": 0,
"state": "off"
},
"ready": true,
"serial": "02873515",
"time": 1504080462.641875,
"uptime": 65457.42
}
Response Headers
8.2. REST-API interface 146