Send Encrypted PDF Report

[POST] /qps/rest/3.0/send/was/report/<id>

Send an encrypted PDF report, which is in the user’s scope, to a distribution list.

Permissions required - User must have WAS module enabled. User accounts must have these permissions: Access Permission “API Access” and “Distribute Report” permission. The output includes reports in the user's scope.

Input ParametersInput Parameters

The elements “id” (integer) and “distributionList” (text) are required, where “id” identifies a report and “distributionList” identifies the email addresses of the report recipients.

Click here for available operators

Sample - Send Encrypted PDF ReportSample - Send Encrypted PDF Report

Let us send an encrypted PDF report to a distribution list.

API request

curl -u "USERNAME:PASSWORD" -H "content-type: text/xml" -X "POST" --@data-binary "<qualys_base_url>/qps/rest/3.0/send/was/report/1302" < file.xml
Note: “file.xml” contains the request POST data.      
    

Request POST data

<ServiceRequest>
    <data>
    <Report>
        <distributionList>
        <add>
            <EmailAddress>
            <![CDATA[email1@abc.com]]>
            </EmailAddress>
            <EmailAddress>
            <![CDATA[email2@abc.com]]>
            </EmailAddress>
        </add>
        </distributionList>
    </Report>
    </data>
</ServiceRequest>      
    

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>
            </Report>
        </data>
        <responseCode>SUCCESS</responseCode>
    </ServiceResponse>      
    

XSD

<platform API server>/qps/xsd/3.0/was/report .xsd