getsandboxlist.do
The getsandboxlist.do call returns the list of sandboxes associated with the specified application.
Before using this API, we recommend reading 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/{applicationGuid}/sandboxes using the Development Sandbox API. We recommend 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/getsandboxlist.do
Parameters
| Name | Type | Description |
|---|---|---|
app_idRequired | Integer | Application 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/getsandboxlist.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/getsandboxlist.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/getsandboxlist.do" "app_id==<app id>"
HTTPie results
The getsandboxlist.do call returns the sandboxlist XML document, which references the sandboxlist.xsd schema file. You can use the XSD schema file to validate the XML data.
<?xml version="1.0" encoding="UTF-8"?>
<sandboxlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/sandboxlist"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/sandboxlist
https://analysiscenter.veracode.com/resource/4.0/sandboxlist.xsd"
sandboxlist_version="1.0" account_id="<account id>" app_id="<app id>">
<sandbox sandbox_id="<"sandbox id>"> sandbox_name="Project Security" owner="<Veracodeusername>"
last_modified="2019-09-17T14:08:35-04:00">
<customfield name="Custom 1" value=""/>
<customfield name="Custom 2" value=""/>
<customfield name="Custom 3" value=""/>
<customfield name="Custom 4" value=""/>
<customfield name="Custom 5" value=""/>
</sandbox>
<sandbox sandbox_id="<sandbox id>" sandbox_name="Project Refactor" owner="<Veracodeusername>"
last_modified="2019-09-17T14:04:13-04:00">
<customfield name="Custom 1" value=""/>
<customfield name="Custom 2" value=""/>
<customfield name="Custom 3" value=""/>
<customfield name="Custom 4" value=""/>
<customfield name="Custom 5" value=""/>
</sandbox>
</sandboxlist>