public final class SandboxAPIWrapper extends AbstractAPIWrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CREATE_SANDBOX_URI |
static java.lang.String |
GET_SANDBOX_LIST_URI |
static java.lang.String |
PROMOTE_SANDBOX_URI |
static java.lang.String |
UPDATE_SANDBOX_URI |
BASE_ADDRESS
Constructor and Description |
---|
SandboxAPIWrapper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createSandbox(java.lang.String app_id,
java.lang.String sandbox_name)
Creates a sandbox for the specified application.
|
java.lang.String |
getSandboxList(java.lang.String app_id)
Returns a list of all the sandboxes associated with the specified
application.
|
java.lang.String |
promoteSandbox(java.lang.String build_id)
Promotes a sandbox scan to a policy scan for the specified build ID.
|
java.lang.String |
updateSandbox(java.lang.String sandbox_id,
java.lang.String custom_field_name,
java.lang.String custom_field_value)
Enables you to amend an existing sandbox in the application profile.
|
setUpApiCredentials, setUpCredentials, setUpProxy, setUpProxy, setUpProxy
public static final java.lang.String CREATE_SANDBOX_URI
public static final java.lang.String GET_SANDBOX_LIST_URI
public static final java.lang.String PROMOTE_SANDBOX_URI
public static final java.lang.String UPDATE_SANDBOX_URI
public java.lang.String createSandbox(java.lang.String app_id, java.lang.String sandbox_name) throws java.io.IOException
Creates a sandbox for the specified application.
Calls this URL: https://analysiscenter.veracode.com/api/5.0/createsandbox.do Schema File: https://analysiscenter.veracode.com/resource/4.0/sandboxinfo.xsd
app_id
- Required. A String that represents an Integer value.sandbox_name
- Required. The name of the sandbox.java.io.IOException
public java.lang.String getSandboxList(java.lang.String app_id) throws java.io.IOException
Returns a list of all the sandboxes associated with the specified application.
Calls this URL: https://analysiscenter.veracode.com/api/5.0/getsandboxlist.do Schema File: https://analysiscenter.veracode.com/resource/4.0/sandboxlist.xsd
app_id
- Required. A String that represents an Integer value.java.io.IOException
public java.lang.String promoteSandbox(java.lang.String build_id) throws java.io.IOException
Promotes a sandbox scan to a policy scan for the specified build ID.
build_id
- Required. Integer values of the build.java.io.IOException
public java.lang.String updateSandbox(java.lang.String sandbox_id, java.lang.String custom_field_name, java.lang.String custom_field_value) throws java.io.IOException
sandbox_id
- Required. Integer value of the sandbox to update.custom_field_name
- Required. Specifies the custom field that the custom_field_value changes.custom_field_value
- Required. The value of the custom field that the custom_field_name specifies.java.io.IOException