Retrieve the right Agent Hash by Hostname from API

It is a known issue that you cannot download an agent package without its hash value. Which you do not know beforehand and which you cannot retrieve only knowing the hostname.

See Use REST API for automatic agent deployment - #2 by r.sander