The generateflawreport.do creates a report listing all fixed and unfixed flaws for the specified applications, scan types, or both. The return contains the token needed for downloading the flaw report.
Resource URL
https://analysiscenter.veracode.com/api/3.0/generateflawreport.do
Permissions
You need the Archer API role to use this call.
Parameters
Name | Type | Description |
---|---|---|
app_id_list Required |
Integer | Comma-separated list of the IDs for the applications you want included in the report. This parameter does not support wildcards. |
scan_type | String | Values include:
|
HTTPie Example
Examples use the HTTPie command-line tool. See Using HTTPie with the Python Authentication Library.
http --auth-type=veracode_hmac -o reporttoken.xml "https://analysiscenter.veracode.com/api/3.0/generateflawreport.do" "app_id_list==<app1 id>,<app2 id>,<app3 id>" "scan_type==static"
HTTPie Results
The generateflawreport.do call initiates the process of creating the generateflawreport XML document, which references the archerreportrequest.xsd schema file. You can use the XSD schema file to validate the XML data. See the archerreportrequest.xsd schema documentation.
<?xml version="1.0" encoding="UTF-8"?> <archerreport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://analysiscenter.veracode.com/schema/1.0/archerapi" xsi:schemaLocation="https://analysiscenter.veracode.com/schema/1.0/archerapi https://analysiscenter.veracode.com/resource/1.0/archerreportrequest.xsd" token="4aaa2b4e-c42a-44c3-a696-c650a82d9c78" archer_report_version="3.0"> </archerreport>