1.URL
http://124.223.60.234:8080/system/asset/command/queryTerminalOtaReport
or Server in US
https://cloud.aovx.com/prod/system/asset/command/queryTerminalOtaReport
2.Request parameters
2.1.Request headers
Add token in Headers: After successful login verification, the corresponding tokenId in user login response data.
2.2.Parameters example
{
"ids":["1957EE0C69614AB3B3AF2755103B0AB6"],
"startTime":"2023-02-01 00:00:00",
"endTime":"2023-02-03 00:00:00",
"pageNum":1,
"pageSize":20
}
2.3.Parameters description
Field | Data type | description | required |
---|---|---|---|
ids | List | Set of unique device identifiers in the system | Y |
startTime | String | start time(UTC) | Y |
endTime | String | end time(UTC) | Y |
pageNum | int | Paging query for current page number, default 1 | Y |
pageSize | int | Paging query displays the number of items per page, default 20 | Y |
3.Response content
3.1.Response example
{
"code": 200,
"message": "Operation succeeded",
"data": {
"total": 1,
"size": 1,
"data": [
{
"terminalId": "1957EE0C69614AB3B3AF2755103B0AB6",
"terminalNum": "344050190425",
"upgradeInfo": "{\"TYPE\":\"0\",\"MODE\":\"0\",\"PROTOCOL\":\"1\",\"VERSION\":\"natives_blob\",\"URL\":\"http://124.223.60.234:8888/FOTA/103/natives_blob.bin\"}",
"status": 1,
"sendTime": "2023-02-02T10:07:39.151Z",
"sendTimestamp": 1675332459151,
"dateTime": "2023-02-02T10:07:39.151Z",
"mark": "E40507ECDCCE400CA1406A8D97AFF250",
"dateTimestamp": 1675332459151
}
]
}
}
3.2.Response description
Field | Data type | description |
---|---|---|
code | int | Return code |
message | String | Return message |
data | object | Response data |
Response data description
Field | Data type | description |
---|---|---|
total | String | Total number of paged queries |
size | String | How many pages are there for pagination query |
data | object | Result set per page |
Per page data description
Field | Data type | description |
---|---|---|
terminalId | String | Unique identification of device in the system |
terminalNum | String | Device number |
upgradeInfo | String | Upgrade Content |
status | Integer | Update status (-1: Upgrade command failed to be issued; 1: Upgrade command successfully issued, waiting for terminal to download upgrade package; 2: Upgrade starts, terminal starts downloading upgrade package; 3: Upgrade succeeded; 4: Upgrade failed) |
sendTime | String | upgrade time(UTC) |
sendTimestamp | String | Upgrade unix timestamp |
dateTime | String | Last update time(UTC) |
dateTimestamp | Long | Last update unix timestamp |
作者:admin 创建时间:2023-04-25 11:54
最后编辑:admin 更新时间:2024-12-27 19:48
最后编辑:admin 更新时间:2024-12-27 19:48