How to exclude those Test Results and Discovered Items to ServiceNow from Qualys, which meet some DNS or IP Address?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2022 11:34 PM
Hi All,
We want to exclude those Test Results and Discovered Items to ServiceNow from Qualys, which meet some DNS or IP Address.
We checked Qualys PC Results, where we found Rest Message "Qualys PC Posture Info" and its method "List".
In the "List" method, found the endpoint and HTTP Query Parameters but what parameters, will be put there to exclude those Assets or data related to those DNS / IP Address.
Thanks & Regards,
Pinaki Saha
- Labels:
-
Configuration Compliance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2022 12:05 AM
Hi Pinaki,
Here is the link to the Qualys API documentation.
https://www.qualys.com/docs/qualys-api-vmpc-user-guide.pdf
The query parameters you could use for exclusion is explained on page 698. (It is a huge document :))
The most feasible way to do is to use tags.
1- Tag the IP addresses and DNS names in Qualys.
2- Use the query parameter tag_set_by={id|name} set name or id in this field.
3- Use tag_set_exclude query parameter to provide the id or name of the tag you created on Qualys to tag the excluded assets.
4- Monitor your REST calls in Outbound HTTP Requests and see everything works as expected.
Please mark it as helpful if it is!
Fatih.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2022 12:15 AM
Hi Fait,
Thank you for the response
We checked and received below response
"<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
<RESPONSE>
<DATETIME>2022-04-29T14:35:43Z</DATETIME>
<CODE>1903</CODE>
<TEXT>Missing required parameter(s): (tag_set_exclude requires tag_set_include)</TEXT>
</RESPONSE>
</SIMPLE_RETURN>
"
PFB screenshot of output of test run.
Thanks & Regards,
Pinaki Saha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2022 01:47 AM
Hi Pinaki,
There is another thread on the forum regarding this issue.
It looks like this is an interesting requirement from Qualys. Is there a tag which is added to all your assets. If so you can add that to the tag_set_include query parameter.
Or maybe contacting Qualys support and asking more details regarding the filter parameters is another option.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2022 06:19 AM
The Qualys integration for ServiceNow relies on the Asset API - Host List Detection api. There are parameters that support filtering by IP as follows:
For DNS you could use tags as described by Faith or Asset Groups which allow you to include the systems you want:
Asset Groups are nice in that they are scalable.
Another option is Search Lists:
All of these parameters can be set within the REST message for the Host Detection integration in SN.