API
Obtain the firmware information of the device.
The API can also call before login, but it will only return the firmware version which is in used
Avaliable in 7.1.1 or later
Return Parameters
Return JSON
Type | Notation | Description | |
order | Array | <fw_id> | The order of firmware information by ID. |
<fw_id> | Object | <Firmware_Obj> | Firmware information. |
<Firmware_Obj>
Type | Notation | Description | |
version | String | <string> | Firmware version |
bootable | Boolean | <boolean> | Firmware is bootable or not |
inUse | Boolean | <boolean> | Firmware is running or not |
cURL Example
curl -b cookies.txt http://192.168.1.1/api/info.firmware
{ "stat": "ok", "response": { "1": { "version": "8.0.1 build 4765", "bootable": true, "inUse": false }, "2": { "version": "8.1.1 build 2860", "bootable": true, "inUse": true }, "order": [ 1, 2 ] } }