I am struggling to find out how to find the Asset ID from the server side (linux) in order make api calls.
Any assistance would be greatly appreciated.
You can't get the Host ID or the Asset ID from the server itself. Only the Agent ID aka Agentless Tracking GUID is actually written to the asset (/etc/qualys/hostid, HKLM\Software\Qualys\hostid).
Please read the above referenced article for more information on how the three IDs work together.
This may be helpful:
Understanding Entity IDs in VM
All I have found thus far is a GUID not the HOST ID that is downloaded via the Host Detection API. So far I think I have done everything as specified in the Agent-less Tracking that is supposed to put the HOST ID on the system according to the documentation as I understand it. But we are struggling with the same issue. We have other tools running on the end point and need to correlate that other end point data with the vulnerability data. Host ID seemed the logical move but it is not present anywhere. I hate to open another ticket but may be forced too.
Ok let me re-phrase. The issue is we have another more than one Agent running on an End Point. That Agent can and does report on registry keys and files etc.. I need something on an end point that has either had an Authenticated Scan OR the Cloud Agent. That data should also be in the Host Asset Detection when downloaded.
Maybe it is the cacophony of IDs. I see in the Host Asset Detection data the following field:
Now the documentation seems to indicate HOST ID but I think it is actually referring to the qghostid in the Host Asset Detection Data. I am start now to see some of that populated. Is this correct? I will try to confirm and that is what I thought but really wanted to make sure.
QGHOST ID is the GUID style ID written by the agent or Agentless Tracking. I believe hostid is going to be the qghostid. jbleggett is going to be a better resource for you wrt to APIs I'm afraid.
Retrieving data ...