/upgrade/state

Use the interface to obtain the current firmware version and upgrade status, and only the administrator has the rights.

Request Mode

POST /api/upgrade/state

Response Body

{
  "status": 0,
  "state": "updating",
  "cur-ver": "1.1.72",
  "update-version": "1.1.72",
  "num-steps": 4,
  "step": 2,
  "step-name": "Erasing image",
  "step-progress": 28
}
Name Description
status 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.
state The task execution status
0: idle
1: initialize and upgrade
2: upgrading
3: upgraded
4: online firmware downloading
cur-ver The current firmware version
update-version The latest firmware version
step The current step number, only available when state is 2
num-steps The total number of steps for update, only available when state is 2
step-name The name of the current step, only available when state is 2
step-progress The progress of the current step, only available when state is 2
Value range: 0 - 100,
Unit: %
download-percent The percentage of online download

results matching ""

    No results matching ""