public class SandboxRequest extends VaultRequest<SandboxRequest>
Modifier and Type | Class and Description |
---|---|
static class |
SandboxRequest.ReleaseType
The type of release.
|
static class |
SandboxRequest.SandboxSize
The sandbox sizes.
|
static class |
SandboxRequest.SandboxSource
The source to refresh the sandbox from.
|
HTTP_HEADER_AUTHORIZATION, HTTP_HEADER_REFERENCE_ID, HTTP_HEADER_VAULT_CLIENT_ID, referenceId, vaultClient
Constructor and Description |
---|
SandboxRequest() |
Modifier and Type | Method and Description |
---|---|
JobCreateResponse |
buildProductionVault(String source)
Given a built pre-production vault, promote it to a production vault.
|
VaultResponse |
changeSandboxSize(String name,
SandboxRequest.SandboxSize sandboxSize)
Change Sandbox Size
|
JobCreateResponse |
createOrRefreshSandbox(String type,
String domain,
String name)
Create a new sandbox for the currently authenticated Vault.
|
JobCreateResponse |
createSandboxSnapshot(String sourceSandbox,
String name,
String description,
Boolean includeData)
Create Sandbox Snapshot
|
VaultResponse |
deleteSandbox(String name)
Delete a sandbox vault.
|
VaultResponse |
deleteSandboxSnapshot(String apiName)
Delete Sandbox Snapshot
|
VaultResponse |
promoteToProduction(String name)
Given a pre-production vault, build a production vault.
|
VaultResponse |
recheckUsageLimit()
Recheck Sandbox Usage Limit
|
JobCreateResponse |
refreshSandboxFromSnapshot(int vaultId,
String sourceSnapshot)
Refresh a sandbox Vault in the currently authenticated Vault from an existing snapshot.
|
SandboxDetailsResponse |
retrieveSandboxDetailsById(int vaultId)
Retrieve Sandbox Details by ID
|
SandboxEntitlementResponse |
retrieveSandboxEntitlements()
Retrieve Sandbox Entitlements
|
SandboxResponse |
retrieveSandboxes()
Retrieve Sandboxes
|
SandboxSnapshotResponse |
retrieveSandboxSnapshots()
Retrieve Sandbox Snapshots
|
SandboxRequest |
setAddRequester(Boolean addRequester)
Set the AddRequester for createOrRefreshSandbox
|
SandboxRequest |
setRelease(SandboxRequest.ReleaseType release)
Set the release type for createOrRefreshSandbox
|
SandboxResponse |
setSandboxEntitlements(String name,
String type,
int allowance,
boolean grant,
int temporaryAllowance,
SandboxRequest.SandboxSize size)
Set Sandbox Entitlements
|
SandboxRequest |
setSize(SandboxRequest.SandboxSize size)
Set the size of the sandbox for createOrRefreshSandbox
|
SandboxRequest |
setSource(SandboxRequest.SandboxSource source)
Set the source to refresh the sandbox from for createOrRefreshSandbox
|
SandboxRequest |
setSourceSnapshot(String sourceSnapshot)
If the source is a snapshot, provide the api_name of the snapshot to create the sandbox from.
|
JobCreateResponse |
updateSandboxSnapshot(String apiName)
Update Sandbox Snapshot
|
JobCreateResponse |
upgradeSandboxSnapshot(String apiName)
Upgrade Sandbox Snapshot
|
getBaseObjectMapper, send, send, sendReturnBinary, sendReturnBinary, sendToFile, sendToFile, setHeaderReferenceId, setVaultClient
public SandboxResponse retrieveSandboxes()
Retrieve information about the sandbox vaults for the authenticated vault.
GET /api/{version}/objects/sandbox
public SandboxDetailsResponse retrieveSandboxDetailsById(int vaultId)
Retrieve information about the sandbox for the given vault ID.
vaultId
- vault idGET /api/{version}/objects/sandbox/{vault_id}
public VaultResponse recheckUsageLimit()
Recalculate the usage values of the sandbox Vaults for the authenticated Vault. This action can be initiated up to three (3) times in a 24-hour period.
POST /api/{version}/objects/sandbox/actions/recheckusage
public VaultResponse changeSandboxSize(String name, SandboxRequest.SandboxSize sandboxSize)
Change the size of a sandbox Vault for the authenticated Vault. You can initiate this action if there are sufficient allowances and the current sandbox meets the data and user limits of the requested size.
name
- The name of the sandboxsandboxSize
- The sandbox size to be setPOST /api/{version}/objects/sandbox/batch/changesize
public SandboxEntitlementResponse retrieveSandboxEntitlements()
Retrieve the total number of available and number of in-use sandbox vaults for the authenticated vault.
GET /api/{version}/objects/sandbox_entitlements
public SandboxResponse setSandboxEntitlements(String name, String type, int allowance, boolean grant, int temporaryAllowance, SandboxRequest.SandboxSize size)
Set new sandbox entitlements, including granting and revoking allowances, for the given sandbox name.
name
- The name of the sandbox vault, which appears on the My Vaults pagetype
- The type of sandbox. At this time, the only available type is config.allowance
- The number of entitlements to grant or revoke.grant
- Allowed values true and false. True grants allowances and false revokes them.temporaryAllowance
- The number of temporary sandbox allowances to grant or revoke.size
- size of the sandboxPOST /api/{version}/objects/sandbox/entitlements/set
public JobCreateResponse createOrRefreshSandbox(String type, String domain, String name)
type
- The type of sandbox, such as config.domain
- The domain to use for the new sandbox.name
- The name of the sandbox vault, which appears on the My Vaults page.POST /api/{version}/objects/sandbox
public JobCreateResponse refreshSandboxFromSnapshot(int vaultId, String sourceSnapshot)
vaultId
- The Vault ID of the sandbox to be refreshedsourceSnapshot
- The api_name of the snapshot to refresh the sandbox fromPOST /api/{version}/objects/sandbox/{vault_id}/actions/refresh
public VaultResponse deleteSandbox(String name)
name
- The name of the sandbox vault to delete. This is the name which appears on the My Vaults pageDELETE /api/{version}/objects/sandbox/{name}
public JobCreateResponse createSandboxSnapshot(String sourceSandbox, String name, String description, Boolean includeData)
Create a new sandbox snapshot for the indicated sandbox Vault.
sourceSandbox
- The name of the sandbox Vault to take a snapshot ofname
- The name of the new snapshotdescription
- The description of the new snapshotincludeData
- Set to true to include data as part of the snapshot. Set to false to include only configurationPOST /api/{version}/objects/sandbox/snapshot
public SandboxSnapshotResponse retrieveSandboxSnapshots()
Retrieve information about sandbox snapshots managed by the authenticated Vault.
GET /api/{version}/objects/sandbox/snapshot
public VaultResponse deleteSandboxSnapshot(String apiName)
Delete a sandbox snapshot managed by the authenticated Vault. Deleted snapshots cannot be recovered.
apiName
- The API name of the sandbox snapshot to deleteDELETE /api/{version}/objects/sandbox/snapshot/{api_name}
public JobCreateResponse updateSandboxSnapshot(String apiName)
Recreate a sandbox snapshot for the same source sandbox Vault. This request replaces the existing snapshot with the newly created one.
apiName
- The API name of the sandbox snapshot to updatePOST /api/{version}/objects/sandbox/snapshot/{api_name}/actions/update
public JobCreateResponse upgradeSandboxSnapshot(String apiName)
Upgrade a sandbox snapshot to match the release version of the source sandbox Vault. Your request to upgrade a snapshot is only valid if the upgrade_status=Upgrade Available or Upgrade Required.
apiName
- The API name of the sandbox snapshot to upgradePOST /api/{version}/objects/sandbox/snapshot/{api_name}/actions/upgrade
public JobCreateResponse buildProductionVault(String source)
source
- the name of the source vault to build. This can be the current pre-production vault or a sandbox vault.POST /api/{version}/objects/sandbox/actions/buildproduction
public VaultResponse promoteToProduction(String name)
You can build or rebuild the source vault for a given pre-production vault no more than three times in a 24 hour period.
name
- The name of the pre-production vault to promote.POST /api/{version}/objects/sandbox/actions/promoteproduction
public SandboxRequest setAddRequester(Boolean addRequester)
addRequester
- addRequesterpublic SandboxRequest setRelease(SandboxRequest.ReleaseType release)
release
- releasepublic SandboxRequest setSource(SandboxRequest.SandboxSource source)
source
- sourcepublic SandboxRequest setSourceSnapshot(String sourceSnapshot)
sourceSnapshot
- sourceSnapshotpublic SandboxRequest setSize(SandboxRequest.SandboxSize size)
size
- sizeCopyright © 2024. All rights reserved.