createsandbox.do

APIs

The createsandbox.do call creates a sandbox for the specified application.

Before using this API, Veracode strongly recommends that you read API Usage and Access Guidelines.

Resource URL

https://analysiscenter.veracode.com/api/5.0/createsandbox.do

Parameters

app_id Integer. Required.
sandbox_name String. Required.

Example

 curl -k -u <VeracodeUsername>:<VeracodePassword>
          https://analysiscenter.veracode.com/api/5.0/createsandbox.do -F "app_id=<app ID>" -F
          "sandbox_name=<sandbox name>"

Results

The createsandbox.do call returns the sandboxinfo XML document, which references the sandboxinfo.xsd. Additional sandboxinfo.xsd schema documentation is available. Use the XSD file to validate the XML data. The following is an example of the returned XML.
<?xml version="1.0" encoding="UTF-8"?>
<sandboxinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://analysiscenter.veracode.com/schema/5.0/sandboxinfo" xsi:schemaLocation="https://analysiscenter.veracode.com/schema/5.0/sandboxinfo https://analysiscenter.veracode.com/resource/5.0/sandboxinfo.xsd" sandboxinfo_version="1.0" account_id="5" app_id="10622">
<sandbox sandbox_id="10701" sandbox_name="User's Sandbox" owner="owner_username" modified_date="2013-09-30T11:08:26-04:00" created_date="2013-09-30T11:08:26-04:00"/>
</sandboxinfo>