public class DomainRequest extends VaultRequest<DomainRequest>
HTTP_HEADER_AUTHORIZATION, HTTP_HEADER_REFERENCE_ID, HTTP_HEADER_VAULT_CLIENT_ID, referenceId, vaultClient| Modifier and Type | Method and Description |
|---|---|
DomainResponse |
retrieveDomainInformation()
Retrieve Domain Information
|
VaultResponse |
retrieveDomains()
Retrieve Domains
|
DomainRequest |
setIncludeApplications(Boolean includeApplications)
To include Vault application type information in the response,
set includeApplications to true.
|
getBaseObjectMapper, send, send, sendReturnBinary, sendReturnBinary, sendToFile, sendToFile, setHeaderReferenceId, setVaultClientpublic DomainResponse retrieveDomainInformation()
Domain Admins can use this request to retrieve a list of all vaults currently in their domain.
GET /api/{version}/objects/domain
DomainResponse resp = vaultClient.newRequest(DomainRequest.class)
.setIncludeApplications(includeApplication)
.retrieveDomainInformation();
System.out.println("Domain Name = " + resp.getDomain().getDomainName());
System.out.println("Domain Type = " + resp.getDomain().getDomainType());
for (DomainVault v : resp.getDomain().getVaults()) {
System.out.println("Name = " + v.getVaultName() + ", Id = " + v.getId());
}public VaultResponse retrieveDomains()
Retrieve a list of all vaults currently in their domain, including the domain of the current vault. This endpoint can be used for non-domain admins.
GET /api/{version}/objects/domains
DomainResponse resp = vaultClient.newRequest(DomainRequest.class)
.retrieveDomains();public DomainRequest setIncludeApplications(Boolean includeApplications)
includeApplications - Set to true to include application type informationCopyright © 2024. All rights reserved.