ota-package-controller
Get OTA Package Info (getOtaPackageInfoById)
Fetch the OTA Package Info object based on the provided OTA Package Id. OTA Package Info is a lightweight object that includes main information about the OTA Package excluding the heavyweight data.
Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
get/api/otaPackage/info/{otaPackageId}
Path parameters
otaPackageIdstring required
A string value representing the ota package id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
Response
OK
Example response
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "OTA_PACKAGE"
},
"createdTime": 1609459200000,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"deviceProfileId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "DEVICE_PROFILE"
},
"type": "FIRMWARE",
"title": "fw",
"tag": "fw_1.0",
"url": "http://thingsboard.org/fw/1",
"hasData": true,
"fileName": "fw_1.0",
"contentType": "APPLICATION_OCTET_STREAM",
"checksumAlgorithm": "CRC32",
"checksum": "0xd87f7e0c",
"dataSize": 8,
"additionalInfo": {}
}