getfilelist.do
The getfilelist.do
call compiles a list of files uploaded for a static scan. The returned XML provides MD5 checksums for these files if available.
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/5.0/getfilelist.do
Parameters
Name | Type | Description |
---|---|---|
app_id Required | Integer | Application ID. |
build_id | Integer | Application or sandbox build ID. Default is the most recent static scan. |
sandbox_id | Integer | Create a list of files from the sandbox with this ID. |
HTTPie example
Examples use the HTTPie command-line tool.
http --auth-type=veracode_hmac "https://analysiscenter.veracode.com/api/5.0/getfilelist.do" "app_id==<app id>" "build_id==<build id>"
HTTPie results
The getfilelist.do
call returns the filelist
XML document, which references the filelist.xsd
schema file. You can use the XSD schema file to validate the XML data.
<?xml version="1.0" encoding="UTF-8"?>
<filelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/filelist"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/filelist
https://analysiscenter.veracode.com/resource/2.0/filelist.xsd" filelist_version="1.1"
account_id="<account id>" app_id="<app id>" build_id="<build id>">
<file file_id="<file id>" file_name="<file name>" file_status="Uploaded" file_md5="<file md5>"/>
<file file_id="<file id>" file_name="<file name>" file_status="Uploaded" file_md5="<file md5>"/>
</filelist>
Java example
java -jar vosp-api-wrappers-java-<version #>.jar -vid <VeracodeApiId> -vkey <VeracodeApiKey> -action getfilelist –appid <app id>
Java results
The getfilelist.do
call returns the filelist
XML document, which references the filelist.xsd
schema file. You can use the XSD schema file to validate the XML data.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<filelist xmlns="https://analysiscenter.veracode.com/schema/2.0/filelist"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
account_id="<account id>" app_id="<app id>" build_id="<build id>" filelist_version="1.1"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/filelist
https://analysiscenter.veracode.com/resource/2.0/filelist.xsd">
<file file_id="<file id>" file_md5="<file md5>"
file_name="<file name>" file_status="Uploaded"/>
</filelist>