ComponentToken

Function

This API is used to get component update token.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
file_sizeintUpgrade file size.

Sample:

POST /API/Maintenance/SystemUpgrade/ComponentToken HTTP/1.1
{
    "version": "1.0",
    "data": {
        "file_size":74328284
    }
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
upgrade_tokenstringUpgrade token.
upgrade_timeout0-3600intUpgrade timeout.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "upgrade_token": "f06f890cc1aed4a04528516c2d331df4",
        "upgrade_timeout": 1800
    }
}

Error Code

See Response Messages Body and Common error_code for more information.