AnsweredAssumed Answered

Getting Bad Request when trying to launch a report via API

Question asked by ydrol on Jul 3, 2012
Latest reply on Jul 3, 2012 by ydrol

I can do view report list OK with the same code so I have all of the headers and certificates right. (so credentials, certificates and HTTP Header omitted for clarity)

 

When I change it from action=list to action=launch and add minimal Scan report info it responds with a 400 error and very little info.

 

Anyone know what is wrong with the URL assuming the scan reference and template id are correct? (Numbers changed slightly for forum).

This should be a manual Scan report. P65 of API V2 PDF

 

https://certs.qualys.eu/api/2.0/fo/report/?report_refs=scan%2F1341318111.7111&report_type=Scan&action=launch&output_format=csv&template_id=90301111&echo_request=0


result gives HTTP status 400 and no body.

 

I've checked Template_id at https://certs.qualys.eu/msp/report_template_list.php and can generate the report OK from the Web GUI.

 

 

The following list command works fine with the same setup

 

https://certs.qualys.eu/api/2.0/fo/report/?action=list&echo_request=0

Outcomes