public class SandboxRequest extends VaultRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
SandboxRequest.ReleaseType
The type of release.
|
HTTP_HEADER_AUTHORIZATION, HTTP_HEADER_VAULT_CLIENT_ID, vaultClient| Constructor and Description |
|---|
SandboxRequest() |
| Modifier and Type | Method and Description |
|---|---|
JobCreateResponse |
createOrRefreshSandbox(String type,
String domain,
String name)
Create a new sandbox for the currently authenticated vault.
|
VaultResponse |
deleteSandbox(String name)
Delete a sandbox vault.
|
SandboxEntitlementResponse |
retrieveSandboxEntitlements()
Retrieve Sandbox Entitlements
|
SandboxResponse |
retrieveSandboxes()
Retrieve Sandboxes
|
SandboxResponse |
retrieveSandboxsDetailsById(int vaultId)
Retrieve Sandbox Details by ID
|
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)
Set Sandbox Entitlements
|
getBaseObjectMapper, send, send, sendReturnBinary, sendReturnBinary, sendToFile, sendToFile, setVaultClientpublic SandboxResponse retrieveSandboxes()
Retrieve information about the sandbox vaults for the authenticated vault.
GET /api/{version}/objects/sandboxpublic SandboxResponse retrieveSandboxsDetailsById(int vaultId)
Retrieve information about the sandbox for the given vault ID.
vaultId - vault id
GET /api/{version}/objects/sandbox/{vault_id}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_entitlementspublic SandboxResponse setSandboxEntitlements(String name, String type, int allowance, boolean grant, int temporaryAllowance)
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.
POST /api/{version}/objects/sandbox/entitlements/setpublic 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/sandboxpublic VaultResponse deleteSandbox(String name)
name - The name of the sandbox vault to delete. This is the name which appears on the My Vaults page.
DELETE /api/{version}/objects/sandbox/{name}public SandboxRequest setAddRequester(Boolean addRequester)
addRequester - addRequesterpublic SandboxRequest setRelease(SandboxRequest.ReleaseType release)
release - releaseCopyright © 2021. All rights reserved.