AnsweredAssumed Answered

How to Fetch XML VM Scan Results using the API?

Question asked by Johnny Shaieb on Sep 8, 2018
Latest reply on Sep 9, 2018 by Jeff Leggett

Page 32 of the Qualys API user's guide provides that a VM scan can be fetched (ie. download) in either a json or csv format.


# Question

Does anybody know how to use the API to download a VM scan in XML format instead of json or csv?


# Curl Example

curl -u "username:password" -H "X-Requested-With: Curl Sample" "https://<url>/api/2.0/fo/scan/?action=fetch&echo_request=1&output_format=json&scan_ref=scan/1533721215.43352"


# User's Guide 


# Output Specification

output_format={csv|json| csv_extended|json_extende d}

(Optional for fetch request) The output format of the vulnerability scan results. A valid value is: csv (the default), json (for JavaScript Object Notation(), csv_extended, json_extended.