getapplist.do
The getapplist.do
call compiles a list of the applications in the portfolio. If you use the optional parameter to include user information, this call also returns details about tasks you have permissions to perform, such as view scan results and approve mitigations.
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.
REST API equivalent
The REST API equivalent of this call is a GET
to /appsec/v1/applications
using the Applications API. Veracode strongly recommends that you use the REST API for this action. For new integrations, always use the REST APIs.
Resource URL
https://analysiscenter.veracode.com/api/5.0/getapplist.do
Parameters
Name | Type | Description |
---|---|---|
include_user_info | Boolean | If true, the list of applications concludes with information about the user, account type, and the assigned permissions. Default is false. |
HTTPie example
Examples use the HTTPie command-line tool.
http --auth-type=veracode_hmac "https://analysiscenter.veracode.com/api/5.0/getapplist.do" "include_user_info==true"
HTTPie results
The getapplist.do
call returns the applist
XML document, which references the applist.xsd
schema file. You can use the XSD schema file to validate the XML data.
<?xml version="1.0" encoding="UTF-8"?>
<applist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/applist"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/applist
https://analysiscenter.veracode.com/resource/2.0/applist.xsd" applist_version="1.2"
account_id="<account id>">
<app app_id="<app id>" app_name="<app name>" policy_updated_date="2019-08-13T14:09:11-04:00"/>
<app app_id="<app id>" app_name="<app name>" policy_updated_date="2019-07-13T14:03:33-04:00"/>
<app app_id="<app id>" app_name="<app name>" policy_updated_date="2019-08-16T14:03:33-11:00"/>
<app app_id="<app id>" app_name="<app name>" policy_updated_date="2019-09-03T14:03:33-07:00"/>
<user login_account_type="user" username="<VeracodeUsername>" create_application_profile="true" create_sandbox="true"
create_new_build="true" create_policy_scan="true" create_sandbox_scan="true" assign_app_to_team="true"
assign_app_to_any_team="true" view_sandbox="true" view_results="true" approve_mitigations="true"
submit_static_scan="true" submit_policy_static_scan="true" submit_sandbox_static_scan="true"/>
</applist>
Java example
java -jar vosp-api-wrappers-java-<version #>.jar -vid <VeracodeApiId> -vkey <VeracodeApiKey> -action getapplist
Java results
The getapplist.do
call returns the applist
XML document, which references the applist.xsd
schema file. You can use the XSD schema file to validate the XML data.
<applist xmlns="https://analysiscenter.veracode.com/schema/2.0/applist"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" account_id="12345"
applist_version="1.2" xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/applist
https://analysiscenter.veracode.com/resource/2.0/applist.xsd">
<app app_id="<app id>" app_name="<app name>" policy_updated_date="2017-11-16T13:55:05-05:00"/>
<app app_id="<app id>" app_name="<app name>" policy_updated_date="2018-08-17T02:24:25-04:00"/>
<app app_id="<app id>" app_name="<app name>"/>
</applist>