AnsweredAssumed Answered

Error creating template via API

Question asked by Dan Zerkle on Aug 26, 2017
Latest reply on Aug 30, 2017 by Dan Zerkle

I'm getting the following error when attempting to create a template via the API 2.0:

 

Text:  Unrecognized parameter(s): title, scan_selection, include_vuln_details_appendix, global, vuln_active (action=create allows: echo_request, report_format)

 

Code:  1901

 

This is peculiar, as I'm pretty sure all those parameters are permitted.  The relevant data for this POST call:

 

path = "/api/2.0/fo/report/template/scan/"
params["action"] = "create"
params["title"] = template_name
params["report_format"] = "xml"
params["scan_selection"] = "ScanBased"
params["include_vuln_details_appendix"] = "1"
params["global"] = "0"
params["vuln_active"] = "1"

 

The resulting URL:

https://ourqualyshost.com/api/2.0/fo/report/template/scan/?action=create&title=our+title&report_format=xml&scan_selection=ScanBased&include_vuln_details_appendix=1&global=0&vuln_active=1

According to page 18 of the API quick reference, those are all valid.  So, what gives?

 

This is QualysGuard Enterprise 8.10.0.2-3.  Is it possible that this version doesn't support this call?

Outcomes