getbuildinfo.do
The getbuildinfo.do
call provides information about the most recent scan or a specific scan of the application.
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/getbuildinfo.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 | Target sandbox ID. |
HTTPie example
Examples use the HTTPie command-line tool.
http --auth-type=veracode_hmac "https://analysiscenter.veracode.com/api/5.0/getbuildinfo.do" "app_id==<app id>"
HTTPie results
The getbuildinfo.do
call returns the buildinfo
XML document, which references the buildinfo.xsd
schema file. You can use the XSD schema file to validate the XML data.
For information on the build status messages, see API scan status information.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<buildinfo xmlns="https://analysiscenter.veracode.com/schema/4.0/buildinfo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/buildinfo https://analysiscenter.veracode.com/resource/4.0/buildinfo.xsd"
buildinfo_version="1.5" account_id="<account id>" app_id="<app id>" build_id="<build id>">
<build build_id="<build id>" grace_period_expired="false" legacy_scan_engine="false"
lifecycle_stage="Not Specified" platform="Not Specified" policy_compliance_status="Not Assessed"
policy_name="Veracode Transitional Very High" policy_version="1" sca_results_ready="true" results_ready="true" rules_status="Not Assessed" scan_overdue="false"
submitter="Veracode" version="13 Aug 2019 Static">
<analysis_unit analysis_type="Static" status="Scan In Process" eta_status="Under Investigation" engine_version="20190805180615"/>
</build>
</buildinfo>
Java example
java -jar vosp-api-wrappers-java-<version #>.jar -vid <VeracodeApiId> -vkey <VeracodeApiKey> -action getbuildinfo –appid <app id>
Java results
The getbuildinfo.do
call returns the buildinfo
XML document, which references the buildinfo.xsd
schema file. You can use the XSD schema file to validate the XML data. For information on the build status messages, see API scan status information.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<buildinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/buildinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/buildinfo
https://analysiscenter.veracode.com/resource/4.0/buildinfo.xsd" buildinfo_version="1.5"
account_id="<account id>" app_id="<app id>" build_id="<build id>">
<build version="outdated1" build_id="<build id>"
submitter="Veracode" platform="Not Specified" lifecycle_stage="Not Specified" sca_results_ready="true "results_ready="false"
policy_name="Veracode Transitional Very High" policy_version="1" policy_compliance_status="Not Assessed"
policy_updated_date="2019-08-13T14:02:08-04:00" rules_status="Not Assessed" grace_period_expired="false"
scan_overdue="false" legacy_scan_engine="false">
<analysis_unit analysis_type="Static" status="Scan In Process" eta_status="Under Investigation" engine_version="20190805180615"/>
</build>
</buildinfo>