AnsweredAssumed Answered

WAS API : Generate a Report based on a Report Template

Question asked by Guillaume MARTIN on Jun 9, 2016
Latest reply on Aug 7, 2017 by Dave Ferguson

Hi,

I'm using WAS API.

Everything was fine (add Web Applications, get their ID, declare Tags, launch scans by Tags...) but...

I need to generate reports based on reports templates (known by their names).

 

It is easy to do manually in the Qualys WAS interface but I have to automate it (for now, with Perl).

 

There is not clue for that in the Qualys WAS API User Guide https://www.qualys.com/docs/qualys-was-api-user-guide.pdf

 

I suppose that I can use something like <template><id>xxxxx</id></template> in my POST xml

to https://qualysapi.qualys.com/qps/rest/3.0/create/was/report in the <data><Report> block.

(it doesn't work with <template><name>yyyyy</name></template>)

(I have to test with a specific ID, if you know the right way, thank you)

 

But I have no clue to find a Report Template ID with WAS API.

I tried some URI with no success.

 

Can you tell me if it is possible and how to do what I need (Generate a Report based on a Report Template known by its Name).

 

Thank you.

Outcomes