All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.piiano.vault.client.openapi.SystemApi Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
/*
 * Piiano Vault REST API
 * --- sidebar_position: 1 sidebar_label: Overview description: The Piiano Vault REST API enables you to access and manage collections, objects, tokens, users, policies, and other resources within Piiano Vault. slug: / ---  # Introduction  The Piiano Vault REST API enables you to access and manage collections, objects, tokens, users, policies, and other resources within Piiano Vault in a simple, programmatic way using conventional HTTP requests and standard HTTP response codes.  The API follows RESTful conventions when possible, with most operations performed by `GET`, `POST`, `PUT`, `PATCH`, and `DELETE` requests. Request and response bodies are [JSON-encoded](https://www.json.org/json-en.html). However, for collection operations, an SQL-like [PVSchema](/guides/reference/pvschema) encoding is available.  This API reference provides details for each operation available in the API.  When you install a local copy of Vault, you can try each operation using **Send API request**.  An OpenAPI specification is available in [YAML](@site/static/assets/openapi.yaml) and [JSON](@site/static/assets/openapi.json) formats and can be used to generate client code for the API. 
 *
 * The version of the OpenAPI document: 1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.piiano.vault.client.openapi;

import com.piiano.vault.client.openapi.ApiCallback;
import com.piiano.vault.client.openapi.ApiClient;
import com.piiano.vault.client.openapi.ApiException;
import com.piiano.vault.client.openapi.ApiResponse;
import com.piiano.vault.client.openapi.Configuration;
import com.piiano.vault.client.openapi.Pair;
import com.piiano.vault.client.openapi.ProgressRequestBody;
import com.piiano.vault.client.openapi.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.piiano.vault.client.openapi.model.AllGenerations;
import com.piiano.vault.client.openapi.model.Config;
import com.piiano.vault.client.openapi.model.DeletionCount;
import com.piiano.vault.client.openapi.model.ExportKeyResponse;
import com.piiano.vault.client.openapi.model.Health;
import com.piiano.vault.client.openapi.model.KMSStatusResponse;
import com.piiano.vault.client.openapi.model.License;
import com.piiano.vault.client.openapi.model.LicenseKey;
import com.piiano.vault.client.openapi.model.ProductVersion;
import com.piiano.vault.client.openapi.model.RestHTTPError;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.core.GenericType;

public class SystemApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

    public SystemApi() {
        this(Configuration.getDefaultApiClient());
    }

    public SystemApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public int getHostIndex() {
        return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
        this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
        this.localCustomBaseUrl = customBaseUrl;
    }

    /**
     * Build call for controlHealth
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call controlHealthCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/pvlt/1.0/ctl/info/health"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call controlHealthValidateBeforeCall(final ApiCallback _callback) throws ApiException { return controlHealthCall(_callback); } /** * Get control service health/status * Gets the status of the service. The status codes returned follow the IETF standard [Health Check Response Format for HTTP APIs](https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check-05). For example, `pass` is returned when the service is up. * @return Health * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public Health controlHealth() throws ApiException { ApiResponse localVarResp = controlHealthWithHttpInfo(); return localVarResp.getData(); } /** * Get control service health/status * Gets the status of the service. The status codes returned follow the IETF standard [Health Check Response Format for HTTP APIs](https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check-05). For example, `pass` is returned when the service is up. * @return ApiResponse<Health> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse controlHealthWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = controlHealthValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get control service health/status (asynchronously) * Gets the status of the service. The status codes returned follow the IETF standard [Health Check Response Format for HTTP APIs](https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check-05). For example, `pass` is returned when the service is up. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call controlHealthAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = controlHealthValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for dataHealth * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call dataHealthCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/pvlt/1.0/data/info/health"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call dataHealthValidateBeforeCall(final ApiCallback _callback) throws ApiException { return dataHealthCall(_callback); } /** * Get data service health/status * Gets the status of the service. The status codes returned follow the IETF standard [Health Check Response Format for HTTP APIs](https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check-05). For example, `pass` is returned when the service is up. The role performing this operation must have the `CapDataReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return Health * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public Health dataHealth() throws ApiException { ApiResponse localVarResp = dataHealthWithHttpInfo(); return localVarResp.getData(); } /** * Get data service health/status * Gets the status of the service. The status codes returned follow the IETF standard [Health Check Response Format for HTTP APIs](https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check-05). For example, `pass` is returned when the service is up. The role performing this operation must have the `CapDataReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return ApiResponse<Health> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse dataHealthWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = dataHealthValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get data service health/status (asynchronously) * Gets the status of the service. The status codes returned follow the IETF standard [Health Check Response Format for HTTP APIs](https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check-05). For example, `pass` is returned when the service is up. The role performing this operation must have the `CapDataReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call dataHealthAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = dataHealthValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for garbageCollection * @param reason Details of the reason for requesting the property. The default is set when no access reason is provided and PVAULT_SERVICE_FORCE_ACCESS_REASON is false. (required) * @param filter Whether to delete objects, tokens, or token transaction IDs with no associated tokens. Options are: - `objects_only` – delete only objects. - `tokens_only` – delete only tokens. - `transaction_ids_only` – delete only token transaction IDs with no associated tokens. (optional) * @param dryRun Whether to respond with how many objects and tokens are available for deletion, without deleting them. (optional, default to false) * @param adhocReason An ad-hoc reason for accessing the Vault data. (optional) * @param reloadCache Reloads the cache before the action. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call garbageCollectionCall(String reason, String filter, Boolean dryRun, String adhocReason, Boolean reloadCache, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/pvlt/1.0/system/admin/lifecycle/gc"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (filter != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter", filter)); } if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dry_run", dryRun)); } if (adhocReason != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("adhoc_reason", adhocReason)); } if (reason != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("reason", reason)); } if (reloadCache != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("reload_cache", reloadCache)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call garbageCollectionValidateBeforeCall(String reason, String filter, Boolean dryRun, String adhocReason, Boolean reloadCache, final ApiCallback _callback) throws ApiException { // verify the required parameter 'reason' is set if (reason == null) { throw new ApiException("Missing the required parameter 'reason' when calling garbageCollection(Async)"); } return garbageCollectionCall(reason, filter, dryRun, adhocReason, reloadCache, _callback); } /** * Delete objects and tokens * Deletes objects and tokens that have been archived for longer than the retention period and token transaction IDs with no associated tokens. :::note This operation deletes a maximum of 10,000 items. To delete all items, repeat calls until the count of deleted items reaches zero. Using the [prune job](/guides/prune-archived-data#configuring-the-prune-job), rather than calling the API, is recommended. For ad-hoc deletion of archived records, use the [Delete objects and tokens](/cli/reference#delete-objects-and-tokens) CLI command, which deletes all relevant items. ::: See [Object life cycle](/data-privacy/object-lifecycle) for more information on how objects and tokens are archived and how deletion is affected by the retention period. * @param reason Details of the reason for requesting the property. The default is set when no access reason is provided and PVAULT_SERVICE_FORCE_ACCESS_REASON is false. (required) * @param filter Whether to delete objects, tokens, or token transaction IDs with no associated tokens. Options are: - `objects_only` – delete only objects. - `tokens_only` – delete only tokens. - `transaction_ids_only` – delete only token transaction IDs with no associated tokens. (optional) * @param dryRun Whether to respond with how many objects and tokens are available for deletion, without deleting them. (optional, default to false) * @param adhocReason An ad-hoc reason for accessing the Vault data. (optional) * @param reloadCache Reloads the cache before the action. (optional) * @return List<DeletionCount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public List garbageCollection(String reason, String filter, Boolean dryRun, String adhocReason, Boolean reloadCache) throws ApiException { ApiResponse> localVarResp = garbageCollectionWithHttpInfo(reason, filter, dryRun, adhocReason, reloadCache); return localVarResp.getData(); } /** * Delete objects and tokens * Deletes objects and tokens that have been archived for longer than the retention period and token transaction IDs with no associated tokens. :::note This operation deletes a maximum of 10,000 items. To delete all items, repeat calls until the count of deleted items reaches zero. Using the [prune job](/guides/prune-archived-data#configuring-the-prune-job), rather than calling the API, is recommended. For ad-hoc deletion of archived records, use the [Delete objects and tokens](/cli/reference#delete-objects-and-tokens) CLI command, which deletes all relevant items. ::: See [Object life cycle](/data-privacy/object-lifecycle) for more information on how objects and tokens are archived and how deletion is affected by the retention period. * @param reason Details of the reason for requesting the property. The default is set when no access reason is provided and PVAULT_SERVICE_FORCE_ACCESS_REASON is false. (required) * @param filter Whether to delete objects, tokens, or token transaction IDs with no associated tokens. Options are: - `objects_only` – delete only objects. - `tokens_only` – delete only tokens. - `transaction_ids_only` – delete only token transaction IDs with no associated tokens. (optional) * @param dryRun Whether to respond with how many objects and tokens are available for deletion, without deleting them. (optional, default to false) * @param adhocReason An ad-hoc reason for accessing the Vault data. (optional) * @param reloadCache Reloads the cache before the action. (optional) * @return ApiResponse<List<DeletionCount>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse> garbageCollectionWithHttpInfo(String reason, String filter, Boolean dryRun, String adhocReason, Boolean reloadCache) throws ApiException { okhttp3.Call localVarCall = garbageCollectionValidateBeforeCall(reason, filter, dryRun, adhocReason, reloadCache, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Delete objects and tokens (asynchronously) * Deletes objects and tokens that have been archived for longer than the retention period and token transaction IDs with no associated tokens. :::note This operation deletes a maximum of 10,000 items. To delete all items, repeat calls until the count of deleted items reaches zero. Using the [prune job](/guides/prune-archived-data#configuring-the-prune-job), rather than calling the API, is recommended. For ad-hoc deletion of archived records, use the [Delete objects and tokens](/cli/reference#delete-objects-and-tokens) CLI command, which deletes all relevant items. ::: See [Object life cycle](/data-privacy/object-lifecycle) for more information on how objects and tokens are archived and how deletion is affected by the retention period. * @param reason Details of the reason for requesting the property. The default is set when no access reason is provided and PVAULT_SERVICE_FORCE_ACCESS_REASON is false. (required) * @param filter Whether to delete objects, tokens, or token transaction IDs with no associated tokens. Options are: - `objects_only` – delete only objects. - `tokens_only` – delete only tokens. - `transaction_ids_only` – delete only token transaction IDs with no associated tokens. (optional) * @param dryRun Whether to respond with how many objects and tokens are available for deletion, without deleting them. (optional, default to false) * @param adhocReason An ad-hoc reason for accessing the Vault data. (optional) * @param reloadCache Reloads the cache before the action. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call garbageCollectionAsync(String reason, String filter, Boolean dryRun, String adhocReason, Boolean reloadCache, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = garbageCollectionValidateBeforeCall(reason, filter, dryRun, adhocReason, reloadCache, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getClusterInfo * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getClusterInfoCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/pvlt/1.0/ctl/info/cluster"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getClusterInfoValidateBeforeCall(final ApiCallback _callback) throws ApiException { return getClusterInfoCall(_callback); } /** * Get cluster information * Get Cluster Information. Returns the vault's generation and the generations of all the workers (data servers). The role that performs this operation must have the `CapClusterInfoReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return AllGenerations * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public AllGenerations getClusterInfo() throws ApiException { ApiResponse localVarResp = getClusterInfoWithHttpInfo(); return localVarResp.getData(); } /** * Get cluster information * Get Cluster Information. Returns the vault's generation and the generations of all the workers (data servers). The role that performs this operation must have the `CapClusterInfoReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return ApiResponse<AllGenerations> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse getClusterInfoWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getClusterInfoValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get cluster information (asynchronously) * Get Cluster Information. Returns the vault's generation and the generations of all the workers (data servers). The role that performs this operation must have the `CapClusterInfoReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getClusterInfoAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getClusterInfoValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getConfiguration * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getConfigurationCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/pvlt/1.0/system/info/configuration"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/toml", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getConfigurationValidateBeforeCall(final ApiCallback _callback) throws ApiException { return getConfigurationCall(_callback); } /** * Get system configuration * Get the current active system configuration. The role that performs this operation must have the `CapInfoReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return Config * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public Config getConfiguration() throws ApiException { ApiResponse localVarResp = getConfigurationWithHttpInfo(); return localVarResp.getData(); } /** * Get system configuration * Get the current active system configuration. The role that performs this operation must have the `CapInfoReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return ApiResponse<Config> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse getConfigurationWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getConfigurationValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get system configuration (asynchronously) * Get the current active system configuration. The role that performs this operation must have the `CapInfoReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getConfigurationAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConfigurationValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getExportKey * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getExportKeyCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/pvlt/1.0/system/admin/export_key"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getExportKeyValidateBeforeCall(final ApiCallback _callback) throws ApiException { return getExportKeyCall(_callback); } /** * Get export key * Gets an encrypted copy of the key used to encrypt exported data. The key is encrypted using the export KMS key defined by the [`PVAULT_KMS_EXPORT_URI` or `PVAULT_KMS_EXPORT_SEED` environment variables](/guides/configure/environment-variables#key-management-service). When importing data, the key is provided to the Vault and decrypted by the KMS, then used to decrypt the data. The role that performs this operation must have the `CapExportKeyReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return ExportKeyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ExportKeyResponse getExportKey() throws ApiException { ApiResponse localVarResp = getExportKeyWithHttpInfo(); return localVarResp.getData(); } /** * Get export key * Gets an encrypted copy of the key used to encrypt exported data. The key is encrypted using the export KMS key defined by the [`PVAULT_KMS_EXPORT_URI` or `PVAULT_KMS_EXPORT_SEED` environment variables](/guides/configure/environment-variables#key-management-service). When importing data, the key is provided to the Vault and decrypted by the KMS, then used to decrypt the data. The role that performs this operation must have the `CapExportKeyReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return ApiResponse<ExportKeyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse getExportKeyWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getExportKeyValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get export key (asynchronously) * Gets an encrypted copy of the key used to encrypt exported data. The key is encrypted using the export KMS key defined by the [`PVAULT_KMS_EXPORT_URI` or `PVAULT_KMS_EXPORT_SEED` environment variables](/guides/configure/environment-variables#key-management-service). When importing data, the key is provided to the Vault and decrypted by the KMS, then used to decrypt the data. The role that performs this operation must have the `CapExportKeyReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getExportKeyAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getExportKeyValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getKms * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getKmsCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/pvlt/1.0/system/info/kms"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getKmsValidateBeforeCall(final ApiCallback _callback) throws ApiException { return getKmsCall(_callback); } /** * Get KMS status * Gets the status of the configured KMS. The role that performs this operation must have the `CapKMSReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return KMSStatusResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public KMSStatusResponse getKms() throws ApiException { ApiResponse localVarResp = getKmsWithHttpInfo(); return localVarResp.getData(); } /** * Get KMS status * Gets the status of the configured KMS. The role that performs this operation must have the `CapKMSReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return ApiResponse<KMSStatusResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse getKmsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getKmsValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get KMS status (asynchronously) * Gets the status of the configured KMS. The role that performs this operation must have the `CapKMSReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getKmsAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getKmsValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getLicense * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getLicenseCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/pvlt/1.0/system/info/license"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getLicenseValidateBeforeCall(final ApiCallback _callback) throws ApiException { return getLicenseCall(_callback); } /** * Get license * Gets information on the currently used license. The role that performs this operation must have the `CapInfoReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return License * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public License getLicense() throws ApiException { ApiResponse localVarResp = getLicenseWithHttpInfo(); return localVarResp.getData(); } /** * Get license * Gets information on the currently used license. The role that performs this operation must have the `CapInfoReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return ApiResponse<License> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse getLicenseWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getLicenseValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get license (asynchronously) * Gets information on the currently used license. The role that performs this operation must have the `CapInfoReader` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getLicenseAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLicenseValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getVaultVersion * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getVaultVersionCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/pvlt/1.0/system/info/version"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getVaultVersionValidateBeforeCall(final ApiCallback _callback) throws ApiException { return getVaultVersionCall(_callback); } /** * Get Vault version * Gets the version of Vault. * @return ProductVersion * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ProductVersion getVaultVersion() throws ApiException { ApiResponse localVarResp = getVaultVersionWithHttpInfo(); return localVarResp.getData(); } /** * Get Vault version * Gets the version of Vault. * @return ApiResponse<ProductVersion> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse getVaultVersionWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getVaultVersionValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get Vault version (asynchronously) * Gets the version of Vault. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call getVaultVersionAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getVaultVersionValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for rotateKeys * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call rotateKeysCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/pvlt/1.0/system/admin/keys/rotate"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call rotateKeysValidateBeforeCall(final ApiCallback _callback) throws ApiException { return rotateKeysCall(_callback); } /** * Rotate data encryption keys * Rotates all the KMS keys that Vault uses to encrypt properties, tokens, and more. When the keys are rotated, new data is encrypted with the new key. All old keys are retained, so that content encrypted with previous keys can be decipherable. The role that performs this operation must have the `CapKMSWriter` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public void rotateKeys() throws ApiException { rotateKeysWithHttpInfo(); } /** * Rotate data encryption keys * Rotates all the KMS keys that Vault uses to encrypt properties, tokens, and more. When the keys are rotated, new data is encrypted with the new key. All old keys are retained, so that content encrypted with previous keys can be decipherable. The role that performs this operation must have the `CapKMSWriter` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse rotateKeysWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = rotateKeysValidateBeforeCall(null); return localVarApiClient.execute(localVarCall); } /** * Rotate data encryption keys (asynchronously) * Rotates all the KMS keys that Vault uses to encrypt properties, tokens, and more. When the keys are rotated, new data is encrypted with the new key. All old keys are retained, so that content encrypted with previous keys can be decipherable. The role that performs this operation must have the `CapKMSWriter` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call rotateKeysAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = rotateKeysValidateBeforeCall(_callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for setLicense * @param licenseKey The license key. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call setLicenseCall(LicenseKey licenseKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = licenseKey; // create path and map variables String localVarPath = "/api/pvlt/1.0/system/info/license"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call setLicenseValidateBeforeCall(LicenseKey licenseKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'licenseKey' is set if (licenseKey == null) { throw new ApiException("Missing the required parameter 'licenseKey' when calling setLicense(Async)"); } return setLicenseCall(licenseKey, _callback); } /** * Set license * Sets the license key for the Vault. * @param licenseKey The license key. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public void setLicense(LicenseKey licenseKey) throws ApiException { setLicenseWithHttpInfo(licenseKey); } /** * Set license * Sets the license key for the Vault. * @param licenseKey The license key. (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse setLicenseWithHttpInfo(LicenseKey licenseKey) throws ApiException { okhttp3.Call localVarCall = setLicenseValidateBeforeCall(licenseKey, null); return localVarApiClient.execute(localVarCall); } /** * Set license (asynchronously) * Sets the license key for the Vault. * @param licenseKey The license key. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The request is successful. -
400 The request is invalid. -
401 Authentication credentials are incorrect or missing. -
403 The caller doesn't have the required access rights. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call setLicenseAsync(LicenseKey licenseKey, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = setLicenseValidateBeforeCall(licenseKey, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for triggerError * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
400 The request is invalid. -
401 An error occurs on the server. -
403 An error occurs on the server. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call triggerErrorCall(Object body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = body; // create path and map variables String localVarPath = "/api/pvlt/1.0/system/debug/error/trigger"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call triggerErrorValidateBeforeCall(Object body, final ApiCallback _callback) throws ApiException { return triggerErrorCall(body, _callback); } /** * Trigger an artificial error * Manually trigger an artificial error for testing purposes. The role that performs this operation must have the `CapErrorWriter` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @param body (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
400 The request is invalid. -
401 An error occurs on the server. -
403 An error occurs on the server. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public void triggerError(Object body) throws ApiException { triggerErrorWithHttpInfo(body); } /** * Trigger an artificial error * Manually trigger an artificial error for testing purposes. The role that performs this operation must have the `CapErrorWriter` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @param body (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
400 The request is invalid. -
401 An error occurs on the server. -
403 An error occurs on the server. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public ApiResponse triggerErrorWithHttpInfo(Object body) throws ApiException { okhttp3.Call localVarCall = triggerErrorValidateBeforeCall(body, null); return localVarApiClient.execute(localVarCall); } /** * Trigger an artificial error (asynchronously) * Manually trigger an artificial error for testing purposes. The role that performs this operation must have the `CapErrorWriter` capability. See [Access control](/data-security/identity-and-access-management#access-control) for more information about how capabilities are used to control access to operations. * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
400 The request is invalid. -
401 An error occurs on the server. -
403 An error occurs on the server. -
404 The requested resource is not found. -
405 The operation is not allowed. -
409 A conflict occurs. -
410 Access to a resource that is no longer available occurs. -
500 An error occurs on the server. -
503 The service is unavailable. -
*/ public okhttp3.Call triggerErrorAsync(Object body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = triggerErrorValidateBeforeCall(body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy