Forum Discussion

JJones's avatar
5 years ago

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 

  • I also just thought of this - you could add FILETYPE (.exe,. rpm, .deb) as well to these as an added check.