How to find all active hosts in Qualys. Currently I am using /api/2.0/fo/asset/host/?action=list. But it doesn't have active parameter. Is there any other api to find all active hosts on which qualys is installed.
Qualys only currently looks at Assets as a snap shot in time (unless you are using the Cloud Agent). To this end, I would look at the look at the last successful scan date (AKA, scanned in the last 3 days / 7 days). There are plenty of groovy scripts on the forums of how to do this. I've never used the API for this method, but I would assume that there is something in there.
Hope that this helps?
If I recall you can add a either lastscandate or last changed date to the Asset/host query in the API but I would just point to the documentation to verify. You could also do this with Asset Search TAGS as well.
Retrieving data ...