AnsweredAssumed Answered

asset search report through API

Question asked by Gustavo Morales on Oct 24, 2012
Latest reply on Oct 24, 2012 by Gustavo Morales

Hello, thanks for your time.

I've been trying to get this asset search report through the API ( because its quite a list ) but i find it hard to do.

I need a report that matches Hostname -> IP Address, which is quite easy from the asset's tab -> asset search. I only need to filter by DNS and voila.

sample.png

 

However, looking through the API, I've seen 2 possible solutions:

API_v1 shows i can use the following: asset_search.php

 

 

https://qualysapi.qualys.com/msp/asset_search.php?target_asset_groups=All&dns=contain:hostname

 

which either takes ages (I haven't seen a result yet) or if I refresh the page it returns something like this:

 

sample2.png

 

The second option acording to API_v2 is using: api/2.0/fo/asset/host/vm/detection (View host list detection). However I don't find this quite useful given it does not give me options to filter by DNS in the host filter part.

 

Any help with this is very much appreciated.

Outcomes