generateflawreport.do
The generateflawreport.do
call 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.
Before using this API, Veracode strongly recommends that you read API usage and access guidelines. Ensure you access the APIs with the domain for your region.
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 are: static , dynamic , manual |
HTTPie example
Examples use the HTTPie command-line tool.
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.
The XML return contains the token string you need to retrieve the report, when it is available, using the downloadflawreport.do
call.
<?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>