Statuscodes
•
200 OK
•
404 Not Found
Referenzierte Datenmodelle
•
(Abschnitt 7.2.3)
Log
GET /system
Abruf von Systeminformationen zum rc_visard.
Musteranfrage
GET
/api/v1/system
Host:
<rcvisard>
Musterantwort
HTTP/1.1 200
OK
Content-Type:
application/json
{
"firmware": {
"active _
image": {
"image _
version":
},
"fallback _
booted": true,
"inactive _
image": {
"image _
version":
},
"next _ boot _
image":
},
"hostname": "rc-visard-02873515",
"link _
speed": 1000,
"mac": "00:14:2D:2B:D8:AB",
"ntp _
status": {
"accuracy":
"48
"synchronized":
},
"ptp _
status": {
"master _
ip": "",
"offset": 0,
"offset _
dev": 0,
"offset _
mean": 0,
"state":
"off"
},
"ready": true,
"serial": "02873515",
"time": 1504080462.641875,
"uptime":
65457.42
}
Antwort-Headers
•
Content-Type
Statuscodes
•
200 OK
Referenzierte Datenmodelle
•
SysInfo
7.2. REST-API-Schnittstelle
– Erfolgreiche Verarbeitung (Rückgabe: Log)
– Log nicht gefunden
HTTP/1.1
"rc _ visard _ v0.6.3"
"rc _ visard _ v0.6.1"
"active _ image"
ms",
true
– application/json
– Erfolgreiche Verarbeitung (Rückgabe: SysInfo)
(Abschnitt 7.2.3)
90