Progress

Function

This API is used to get IPC update progress.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
upgrade_chnsstring arrayNeed to upgrade the IPCs.

Sample:

POST /API/Maintenance/FtpUpgrade/Progress HTTP/1.1
{
    "version": "1.0",
    "data": {
        "upgrade_chns":[
            "CH8",
            "CH15",
            "CH16"
        ]
    }
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
cur_ipcstring arrayCurrently upgrading IPC.
upgrade_percentintFTP download IPC upgrade file progress.
upgrade_statestringFTP upgrade IPC status, see Maintenance > IPCMaintenance > IPCUpgrade_Code .
upgrade_resultstringFTP upgrade IPC result, see Maintenance > IPCMaintenance > IPCUpgrade_Code .

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "cur_ipc": [],
        "upgrade_percent": 100,
        "upgrade_state": "upgrade_upgrade_succeed",
        "upgrade_result": "ok"
    }
}

Error Code

See Response Messages Body and Common error_code for more information.