3.10.2 Upgrade
Zjištění stavu upgradu
URL: | https://{{ip_addr}}/api/v1/maintenance/upgrade |
HTTP Metoda: | GET |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby. |
Response data: | { "data": { "fwVersion": "4.2.0", "isDowngrade": false, "status": 0, "wipeData": false } } |
Nahrání firmware
URL: | https://{{ip_addr}}/api/v1/maintenance/upgrade/upload |
HTTP Metoda: | PUT |
Request body: | form-data:
|
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby. |
Response data: | { "data": { "fwVersion": "4.2.0", "isDowngrade": false, "status": 1, "wipeData": false } } |
Spuštění upgradu
URL: | https://{{ip_addr}}/api/v1/maintenance/upgrade/start |
HTTP Metoda: | PUT |
Request body: | {"wipeData":true} |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby. |
Response data: | { "data": { "fwVersion": "4.2.0", "isDowngrade": false, "status": 2, "wipeData": true } } |
Zrušení upgradu.
URL: | https://{{ip_addr}}/api/v1/maintenance/upgrade/cancel |
HTTP Metoda: | PUT |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby. |
Response data: | { "data": { "fwVersion": "4.2.0", "isDowngrade": false, "status": 0, "wipeData": true } } |