Get Report Details
View details for a report which is in the user’s scope. Want to find a report ID to use as input? See Search reports.
Permissions required: User must have WAS module enabled. User account must have these permissions: Access Permission API Access. The output includes reports in the user's scope.
Input ParametersInput Parameters
The element “id” (integer) is required, where “id” identifies the report.
Sample - View details of a reportSample - View details of a report
Let us view details for a report with ID 1302.
API request:
curl -n -u "USERNAME:PASSWORD" "<qualys_base_url>/qps/rest/3.0/get/was/report/1302"
XML response:
<?xml version="1.0" encoding="UTF-8"?>
<ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="<qualys_base_url>/qps/xsd/3.0/was/report.xsd"
<ServiceResponse>
<count>1</count>
<data>
<Report>
<id>1302</id>
<name>
<![CDATA[Web Application Report 2]]>
</name>
<type>WAS_WEBAPP_REPORT</type>
<format>PDF_ENCRYPTED</format>
<status>COMPLETE</status>
<size>2244667</size>
<creationDate>2018-11-24T00:00:00Z</creationDate>
<lastDownloadDate>2018-11-09T00:00:00Z</lastDownloadDate>
<downloadCount>1</downloadCount>
<tags>
<count>2</count>
<list>
<Tag>
<id>99509</id>
<name>
<![CDATA[Tag 1]]>
</name>
</Tag>
<Tag>
<id>99510</id>
<name>
<![CDATA[Tag 2]]>
</name>
</Tag>
</list>
</tags>
<distributionList>
<count>2</count>
<list>
<EmailAddress>
<![CDATA[[email protected]]]>
</EmailAddress>
<EmailAddress>
<![CDATA[[email protected]]]>
</EmailAddress>
</list>
</distributionList>
<owner>
<id>123056</id>
<username>username</username>
<firstName>
<![CDATA[John]]>
</firstName>
<lastName>
<![CDATA[Smith]]>
</lastName>
</owner>
</Report>
</data>
<responseCode>SUCCESS</responseCode>
</ServiceResponse>
XSD
<platform API server>/qps/xsd/3.0/was/report.xsd