Collector file size returned in Collector API Post command
Hello
In working with various APIs lately, I have come across a small issue. While I can work around it for now, via other checks, it would be FANTASTIC to have a field in the Collector POST API call that gives the FILE SIZE and CHECKSUM of the various collectors that (based on architecture) that may be downloaded. Given storing the data returned by POST in a variable $response, I envision fields as...
$response.data.windows.filesize
$response.data.windows.checksum
$response.data.linux.filesize
$response.data.linux.checksum
This way during the GET phase I can easily check those values against the values seen by the filesystem (file size) and calculate the checksum to confirm.
Thanks
JJ
JJones
Posted 6 years ago·Last reply 6 years ago
1 comment
JJones
OP6 years agoI also just thought of this - you could add FILETYPE (.exe,. rpm, .deb) as well to these as an added check.