getbuildlist.do
The getbuildlist.do call produces a list of the application policy or sandbox scans in progress or already complete.
Before using this API, we recommend reading 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/getbuildlist.do
Parameters
| Name | Type | Description |
|---|---|---|
app_idRequired | Integer | Application ID. |
sandbox_id | Integer | Target sandbox ID. |
HTTPie example
Examples use the HTTPie command-line tool.
Before you begin
To authenticate with Veracode, ensure you have set up API authentication for HMAC or OAuth 2.0.
Veracode HMAC authentication
http --auth-type=veracode_hmac "https://analysiscenter.veracode.com/api/5.0/getbuildlist.do" "app_id==<app id>"
OAuth 2.0 Client Credentials authentication
- Windows (PowerShell)
- macOS, Linux, or UNIX
http --auth-type=oauth2-client-credentials-flow `
--auth="$($env:VERACODE_CLIENT_ID):$($env:VERACODE_CLIENT_SECRET)" `
--token-endpoint="$($env:VERACODE_TOKEN_URL)" `
--token-request-type=basic "https://analysiscenter.veracode.com/api/5.0/getbuildlist.do" "app_id==<app id>"
http --auth-type=oauth2-client-credentials-flow \
--auth="$VERACODE_CLIENT_ID:$VERACODE_CLIENT_SECRET" \
--token-endpoint="$VERACODE_TOKEN_URL" \
--token-request-type=basic "https://analysiscenter.veracode.com/api/5.0/getbuildlist.do" "app_id==<app id>"
HTTPie results
The getbuildlist.do call returns the buildlist XML document, which references the buildlist.xsd schema file. You can use the XSD schema file to validate the XML data.
<?xml version="1.0" encoding="UTF-8"?>
<buildlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/buildlist"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/buildlist
https://analysiscenter.veracode.com/resource/2.0/buildlist.xsd" buildlist_version="1.3"
account_id="<account id>" app_id="<app id>" app_name="<app name>"><build build_id="<build id>"
version="13 Aug 2019 Static" policy_updated_date="2019-08-13T14:02:08-04:00"/>
</buildlist>
Java example
java -jar vosp-api-wrappers-java-<version #>.jar -vid <VeracodeApiId> -vkey <VeracodeApiKey> -action getbuildlist --appid <app id>
Java results
The getbuildlist.do call returns the buildlist XML document, which references the buildlist.xsd schema file. You can use the XSD schema file to validate the XML data.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<buildlist xmlns="https://analysiscenter.veracode.com/schema/2.0/buildlist"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" account_id="74370"
app_id="<app id>" app_name="<app name>" buildlist_version="1.3"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/buildlist
https://analysiscenter.veracode.com/resource/2.0/buildlist.xsd">
<build build_id="<build id>"
policy_updated_date="2019-08-13T14:09:11-04:00" version="13 Aug 2019 Static"/>
</buildlist>