76343/4/5 | English, Revision 05 | Date: 23.02.2022
87
REST-API – Chapter 11
11.1 Functions and Command Lines
Starting with firmware 2.12p it is possible to perform the following functions via
HTTP(S) with GET and POST:
1.
Download of the active config file
2.
Download of the default config file
3.
Upload of a config file
4.
Upload of a firmware file
5.
Status request
6.
Certificate upload
7.
Download of a list of available WLAN+LAN recordings ((W)LAN dump files)
8.
Download of single WLAN+LAN recordings
9.
Download of the systemlog file
With the command line tool
curl
you can execute the functions of the REST-API via
script automatically or via command line.
curl
also processes the transfer of any
user/password information. This is how the command lines for the various functions
would look like:
REST-API
Table 60
REST-API: Functions and Parameters
Function
URL
Method Result
Download the active
config file
http(s)://<radio_modem_IP>/API/Cfg/GetRunning
GET
Text
Download the
default config file
http(s)://<radio_modem_IP>/API/Cfg/GetDefault
Get
Text
Upload of a config
file
http(s)://<radio_modem_IP>/API/Cfg/Set
POST
Upload of a firm
-
ware file
http(s)://<radio_modem_IP>/API/Firmware/Upgrade
POST
Status request
http(s)://<radio_modem_IP>/API/Status
GET
JSON
Upload a certificate http(s)://<
radio_modem_IP
>/API/Cfg/ImportCertificate
POST
Download the file
list of the existing
WLAN+LAN record
-
ings
http(s)://<
radio_modem_IP
>/API/Debug/CaptureFiles
GET
JSON
Download a file
http(s)://<
radio_modem_IP
>/API/Debug/CaptureFile/
<FileName>
GET
Binary
Download the sys
-
temlog file
http(s)://<
radio_modem_IP
>/API/Debug/Get/SystemLog
GET
JSON
11