Class ElasticsearchSecurityAsyncClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.security.ElasticsearchSecurityAsyncClient
public class ElasticsearchSecurityAsyncClient extends ApiClient
Client for the security namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchSecurityAsyncClient(Transport transport) -
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<AuthenticateResponse>authenticate()Enables authentication as a user and retrieve information about the authenticated user.java.util.concurrent.CompletableFuture<ChangePasswordResponse>changePassword(ChangePasswordRequest request)Changes the passwords of users in the native realm and built-in users.java.util.concurrent.CompletableFuture<ChangePasswordResponse>changePassword(java.util.function.Function<ChangePasswordRequest.Builder,ObjectBuilder<ChangePasswordRequest>> fn)Changes the passwords of users in the native realm and built-in users.java.util.concurrent.CompletableFuture<ClearApiKeyCacheResponse>clearApiKeyCache(ClearApiKeyCacheRequest request)Clear a subset or all entries from the API key cache.java.util.concurrent.CompletableFuture<ClearApiKeyCacheResponse>clearApiKeyCache(java.util.function.Function<ClearApiKeyCacheRequest.Builder,ObjectBuilder<ClearApiKeyCacheRequest>> fn)Clear a subset or all entries from the API key cache.java.util.concurrent.CompletableFuture<ClearCachedPrivilegesResponse>clearCachedPrivileges(ClearCachedPrivilegesRequest request)Evicts application privileges from the native application privileges cache.java.util.concurrent.CompletableFuture<ClearCachedPrivilegesResponse>clearCachedPrivileges(java.util.function.Function<ClearCachedPrivilegesRequest.Builder,ObjectBuilder<ClearCachedPrivilegesRequest>> fn)Evicts application privileges from the native application privileges cache.java.util.concurrent.CompletableFuture<ClearCachedRealmsResponse>clearCachedRealms(ClearCachedRealmsRequest request)Evicts users from the user cache.java.util.concurrent.CompletableFuture<ClearCachedRealmsResponse>clearCachedRealms(java.util.function.Function<ClearCachedRealmsRequest.Builder,ObjectBuilder<ClearCachedRealmsRequest>> fn)Evicts users from the user cache.java.util.concurrent.CompletableFuture<ClearCachedRolesResponse>clearCachedRoles(ClearCachedRolesRequest request)Evicts roles from the native role cache.java.util.concurrent.CompletableFuture<ClearCachedRolesResponse>clearCachedRoles(java.util.function.Function<ClearCachedRolesRequest.Builder,ObjectBuilder<ClearCachedRolesRequest>> fn)Evicts roles from the native role cache.java.util.concurrent.CompletableFuture<ClearCachedServiceTokensResponse>clearCachedServiceTokens(ClearCachedServiceTokensRequest request)Evicts tokens from the service account token caches.java.util.concurrent.CompletableFuture<ClearCachedServiceTokensResponse>clearCachedServiceTokens(java.util.function.Function<ClearCachedServiceTokensRequest.Builder,ObjectBuilder<ClearCachedServiceTokensRequest>> fn)Evicts tokens from the service account token caches.java.util.concurrent.CompletableFuture<CreateApiKeyResponse>createApiKey(CreateApiKeyRequest request)Creates an API key for access without requiring basic authentication.java.util.concurrent.CompletableFuture<CreateApiKeyResponse>createApiKey(java.util.function.Function<CreateApiKeyRequest.Builder,ObjectBuilder<CreateApiKeyRequest>> fn)Creates an API key for access without requiring basic authentication.java.util.concurrent.CompletableFuture<CreateServiceTokenResponse>createServiceToken(CreateServiceTokenRequest request)Creates a service account token for access without requiring basic authentication.java.util.concurrent.CompletableFuture<CreateServiceTokenResponse>createServiceToken(java.util.function.Function<CreateServiceTokenRequest.Builder,ObjectBuilder<CreateServiceTokenRequest>> fn)Creates a service account token for access without requiring basic authentication.java.util.concurrent.CompletableFuture<DeletePrivilegesResponse>deletePrivileges(DeletePrivilegesRequest request)Removes application privileges.java.util.concurrent.CompletableFuture<DeletePrivilegesResponse>deletePrivileges(java.util.function.Function<DeletePrivilegesRequest.Builder,ObjectBuilder<DeletePrivilegesRequest>> fn)Removes application privileges.java.util.concurrent.CompletableFuture<DeleteRoleResponse>deleteRole(DeleteRoleRequest request)Removes roles in the native realm.java.util.concurrent.CompletableFuture<DeleteRoleResponse>deleteRole(java.util.function.Function<DeleteRoleRequest.Builder,ObjectBuilder<DeleteRoleRequest>> fn)Removes roles in the native realm.java.util.concurrent.CompletableFuture<DeleteRoleMappingResponse>deleteRoleMapping(DeleteRoleMappingRequest request)Removes role mappings.java.util.concurrent.CompletableFuture<DeleteRoleMappingResponse>deleteRoleMapping(java.util.function.Function<DeleteRoleMappingRequest.Builder,ObjectBuilder<DeleteRoleMappingRequest>> fn)Removes role mappings.java.util.concurrent.CompletableFuture<DeleteServiceTokenResponse>deleteServiceToken(DeleteServiceTokenRequest request)Deletes a service account token.java.util.concurrent.CompletableFuture<DeleteServiceTokenResponse>deleteServiceToken(java.util.function.Function<DeleteServiceTokenRequest.Builder,ObjectBuilder<DeleteServiceTokenRequest>> fn)Deletes a service account token.java.util.concurrent.CompletableFuture<DeleteUserResponse>deleteUser(DeleteUserRequest request)Deletes users from the native realm.java.util.concurrent.CompletableFuture<DeleteUserResponse>deleteUser(java.util.function.Function<DeleteUserRequest.Builder,ObjectBuilder<DeleteUserRequest>> fn)Deletes users from the native realm.java.util.concurrent.CompletableFuture<DisableUserResponse>disableUser(DisableUserRequest request)Disables users in the native realm.java.util.concurrent.CompletableFuture<DisableUserResponse>disableUser(java.util.function.Function<DisableUserRequest.Builder,ObjectBuilder<DisableUserRequest>> fn)Disables users in the native realm.java.util.concurrent.CompletableFuture<EnableUserResponse>enableUser(EnableUserRequest request)Enables users in the native realm.java.util.concurrent.CompletableFuture<EnableUserResponse>enableUser(java.util.function.Function<EnableUserRequest.Builder,ObjectBuilder<EnableUserRequest>> fn)Enables users in the native realm.java.util.concurrent.CompletableFuture<GetApiKeyResponse>getApiKey(GetApiKeyRequest request)Retrieves information for one or more API keys.java.util.concurrent.CompletableFuture<GetApiKeyResponse>getApiKey(java.util.function.Function<GetApiKeyRequest.Builder,ObjectBuilder<GetApiKeyRequest>> fn)Retrieves information for one or more API keys.java.util.concurrent.CompletableFuture<GetBuiltinPrivilegesResponse>getBuiltinPrivileges()Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.java.util.concurrent.CompletableFuture<GetPrivilegesResponse>getPrivileges(GetPrivilegesRequest request)Retrieves application privileges.java.util.concurrent.CompletableFuture<GetPrivilegesResponse>getPrivileges(java.util.function.Function<GetPrivilegesRequest.Builder,ObjectBuilder<GetPrivilegesRequest>> fn)Retrieves application privileges.java.util.concurrent.CompletableFuture<GetRoleResponse>getRole(GetRoleRequest request)Retrieves roles in the native realm.java.util.concurrent.CompletableFuture<GetRoleResponse>getRole(java.util.function.Function<GetRoleRequest.Builder,ObjectBuilder<GetRoleRequest>> fn)Retrieves roles in the native realm.java.util.concurrent.CompletableFuture<GetRoleMappingResponse>getRoleMapping(GetRoleMappingRequest request)Retrieves role mappings.java.util.concurrent.CompletableFuture<GetRoleMappingResponse>getRoleMapping(java.util.function.Function<GetRoleMappingRequest.Builder,ObjectBuilder<GetRoleMappingRequest>> fn)Retrieves role mappings.java.util.concurrent.CompletableFuture<GetServiceAccountsResponse>getServiceAccounts(GetServiceAccountsRequest request)Retrieves information about service accounts.java.util.concurrent.CompletableFuture<GetServiceAccountsResponse>getServiceAccounts(java.util.function.Function<GetServiceAccountsRequest.Builder,ObjectBuilder<GetServiceAccountsRequest>> fn)Retrieves information about service accounts.java.util.concurrent.CompletableFuture<GetServiceCredentialsResponse>getServiceCredentials(GetServiceCredentialsRequest request)Retrieves information of all service credentials for a service account.java.util.concurrent.CompletableFuture<GetServiceCredentialsResponse>getServiceCredentials(java.util.function.Function<GetServiceCredentialsRequest.Builder,ObjectBuilder<GetServiceCredentialsRequest>> fn)Retrieves information of all service credentials for a service account.java.util.concurrent.CompletableFuture<GetTokenResponse>getToken(GetTokenRequest request)Creates a bearer token for access without requiring basic authentication.java.util.concurrent.CompletableFuture<GetTokenResponse>getToken(java.util.function.Function<GetTokenRequest.Builder,ObjectBuilder<GetTokenRequest>> fn)Creates a bearer token for access without requiring basic authentication.java.util.concurrent.CompletableFuture<GetUserResponse>getUser(GetUserRequest request)Retrieves information about users in the native realm and built-in users.java.util.concurrent.CompletableFuture<GetUserResponse>getUser(java.util.function.Function<GetUserRequest.Builder,ObjectBuilder<GetUserRequest>> fn)Retrieves information about users in the native realm and built-in users.java.util.concurrent.CompletableFuture<GetUserPrivilegesResponse>getUserPrivileges(GetUserPrivilegesRequest request)Retrieves security privileges for the logged in user.java.util.concurrent.CompletableFuture<GetUserPrivilegesResponse>getUserPrivileges(java.util.function.Function<GetUserPrivilegesRequest.Builder,ObjectBuilder<GetUserPrivilegesRequest>> fn)Retrieves security privileges for the logged in user.java.util.concurrent.CompletableFuture<GrantApiKeyResponse>grantApiKey(GrantApiKeyRequest request)Creates an API key on behalf of another user.java.util.concurrent.CompletableFuture<GrantApiKeyResponse>grantApiKey(java.util.function.Function<GrantApiKeyRequest.Builder,ObjectBuilder<GrantApiKeyRequest>> fn)Creates an API key on behalf of another user.java.util.concurrent.CompletableFuture<HasPrivilegesResponse>hasPrivileges(HasPrivilegesRequest request)Determines whether the specified user has a specified list of privileges.java.util.concurrent.CompletableFuture<HasPrivilegesResponse>hasPrivileges(java.util.function.Function<HasPrivilegesRequest.Builder,ObjectBuilder<HasPrivilegesRequest>> fn)Determines whether the specified user has a specified list of privileges.java.util.concurrent.CompletableFuture<InvalidateApiKeyResponse>invalidateApiKey(InvalidateApiKeyRequest request)Invalidates one or more API keys.java.util.concurrent.CompletableFuture<InvalidateApiKeyResponse>invalidateApiKey(java.util.function.Function<InvalidateApiKeyRequest.Builder,ObjectBuilder<InvalidateApiKeyRequest>> fn)Invalidates one or more API keys.java.util.concurrent.CompletableFuture<InvalidateTokenResponse>invalidateToken(InvalidateTokenRequest request)Invalidates one or more access tokens or refresh tokens.java.util.concurrent.CompletableFuture<InvalidateTokenResponse>invalidateToken(java.util.function.Function<InvalidateTokenRequest.Builder,ObjectBuilder<InvalidateTokenRequest>> fn)Invalidates one or more access tokens or refresh tokens.java.util.concurrent.CompletableFuture<PutPrivilegesResponse>putPrivileges(PutPrivilegesRequest request)Adds or updates application privileges.java.util.concurrent.CompletableFuture<PutPrivilegesResponse>putPrivileges(java.util.function.Function<PutPrivilegesRequest.Builder,ObjectBuilder<PutPrivilegesRequest>> fn)Adds or updates application privileges.java.util.concurrent.CompletableFuture<PutRoleResponse>putRole(PutRoleRequest request)Adds and updates roles in the native realm.java.util.concurrent.CompletableFuture<PutRoleResponse>putRole(java.util.function.Function<PutRoleRequest.Builder,ObjectBuilder<PutRoleRequest>> fn)Adds and updates roles in the native realm.java.util.concurrent.CompletableFuture<PutRoleMappingResponse>putRoleMapping(PutRoleMappingRequest request)Creates and updates role mappings.java.util.concurrent.CompletableFuture<PutRoleMappingResponse>putRoleMapping(java.util.function.Function<PutRoleMappingRequest.Builder,ObjectBuilder<PutRoleMappingRequest>> fn)Creates and updates role mappings.java.util.concurrent.CompletableFuture<PutUserResponse>putUser(PutUserRequest request)Adds and updates users in the native realm.java.util.concurrent.CompletableFuture<PutUserResponse>putUser(java.util.function.Function<PutUserRequest.Builder,ObjectBuilder<PutUserRequest>> fn)Adds and updates users in the native realm.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchSecurityAsyncClient
-
-
Method Details
-
authenticate
public java.util.concurrent.CompletableFuture<AuthenticateResponse> authenticate() throws java.io.IOExceptionEnables authentication as a user and retrieve information about the authenticated user.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
changePassword
public java.util.concurrent.CompletableFuture<ChangePasswordResponse> changePassword(ChangePasswordRequest request) throws java.io.IOExceptionChanges the passwords of users in the native realm and built-in users.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
changePassword
public final java.util.concurrent.CompletableFuture<ChangePasswordResponse> changePassword(java.util.function.Function<ChangePasswordRequest.Builder,ObjectBuilder<ChangePasswordRequest>> fn) throws java.io.IOExceptionChanges the passwords of users in the native realm and built-in users.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearApiKeyCache
public java.util.concurrent.CompletableFuture<ClearApiKeyCacheResponse> clearApiKeyCache(ClearApiKeyCacheRequest request) throws java.io.IOExceptionClear a subset or all entries from the API key cache.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearApiKeyCache
public final java.util.concurrent.CompletableFuture<ClearApiKeyCacheResponse> clearApiKeyCache(java.util.function.Function<ClearApiKeyCacheRequest.Builder,ObjectBuilder<ClearApiKeyCacheRequest>> fn) throws java.io.IOExceptionClear a subset or all entries from the API key cache.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedPrivileges
public java.util.concurrent.CompletableFuture<ClearCachedPrivilegesResponse> clearCachedPrivileges(ClearCachedPrivilegesRequest request) throws java.io.IOExceptionEvicts application privileges from the native application privileges cache.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedPrivileges
public final java.util.concurrent.CompletableFuture<ClearCachedPrivilegesResponse> clearCachedPrivileges(java.util.function.Function<ClearCachedPrivilegesRequest.Builder,ObjectBuilder<ClearCachedPrivilegesRequest>> fn) throws java.io.IOExceptionEvicts application privileges from the native application privileges cache.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedRealms
public java.util.concurrent.CompletableFuture<ClearCachedRealmsResponse> clearCachedRealms(ClearCachedRealmsRequest request) throws java.io.IOExceptionEvicts users from the user cache. Can completely clear the cache or evict specific users.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedRealms
public final java.util.concurrent.CompletableFuture<ClearCachedRealmsResponse> clearCachedRealms(java.util.function.Function<ClearCachedRealmsRequest.Builder,ObjectBuilder<ClearCachedRealmsRequest>> fn) throws java.io.IOExceptionEvicts users from the user cache. Can completely clear the cache or evict specific users.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedRoles
public java.util.concurrent.CompletableFuture<ClearCachedRolesResponse> clearCachedRoles(ClearCachedRolesRequest request) throws java.io.IOExceptionEvicts roles from the native role cache.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedRoles
public final java.util.concurrent.CompletableFuture<ClearCachedRolesResponse> clearCachedRoles(java.util.function.Function<ClearCachedRolesRequest.Builder,ObjectBuilder<ClearCachedRolesRequest>> fn) throws java.io.IOExceptionEvicts roles from the native role cache.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedServiceTokens
public java.util.concurrent.CompletableFuture<ClearCachedServiceTokensResponse> clearCachedServiceTokens(ClearCachedServiceTokensRequest request) throws java.io.IOExceptionEvicts tokens from the service account token caches.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCachedServiceTokens
public final java.util.concurrent.CompletableFuture<ClearCachedServiceTokensResponse> clearCachedServiceTokens(java.util.function.Function<ClearCachedServiceTokensRequest.Builder,ObjectBuilder<ClearCachedServiceTokensRequest>> fn) throws java.io.IOExceptionEvicts tokens from the service account token caches.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
createApiKey
public java.util.concurrent.CompletableFuture<CreateApiKeyResponse> createApiKey(CreateApiKeyRequest request) throws java.io.IOExceptionCreates an API key for access without requiring basic authentication.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
createApiKey
public final java.util.concurrent.CompletableFuture<CreateApiKeyResponse> createApiKey(java.util.function.Function<CreateApiKeyRequest.Builder,ObjectBuilder<CreateApiKeyRequest>> fn) throws java.io.IOExceptionCreates an API key for access without requiring basic authentication.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
createServiceToken
public java.util.concurrent.CompletableFuture<CreateServiceTokenResponse> createServiceToken(CreateServiceTokenRequest request) throws java.io.IOExceptionCreates a service account token for access without requiring basic authentication.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
createServiceToken
public final java.util.concurrent.CompletableFuture<CreateServiceTokenResponse> createServiceToken(java.util.function.Function<CreateServiceTokenRequest.Builder,ObjectBuilder<CreateServiceTokenRequest>> fn) throws java.io.IOExceptionCreates a service account token for access without requiring basic authentication.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deletePrivileges
public java.util.concurrent.CompletableFuture<DeletePrivilegesResponse> deletePrivileges(DeletePrivilegesRequest request) throws java.io.IOExceptionRemoves application privileges.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deletePrivileges
public final java.util.concurrent.CompletableFuture<DeletePrivilegesResponse> deletePrivileges(java.util.function.Function<DeletePrivilegesRequest.Builder,ObjectBuilder<DeletePrivilegesRequest>> fn) throws java.io.IOExceptionRemoves application privileges.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteRole
public java.util.concurrent.CompletableFuture<DeleteRoleResponse> deleteRole(DeleteRoleRequest request) throws java.io.IOExceptionRemoves roles in the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteRole
public final java.util.concurrent.CompletableFuture<DeleteRoleResponse> deleteRole(java.util.function.Function<DeleteRoleRequest.Builder,ObjectBuilder<DeleteRoleRequest>> fn) throws java.io.IOExceptionRemoves roles in the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteRoleMapping
public java.util.concurrent.CompletableFuture<DeleteRoleMappingResponse> deleteRoleMapping(DeleteRoleMappingRequest request) throws java.io.IOExceptionRemoves role mappings.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteRoleMapping
public final java.util.concurrent.CompletableFuture<DeleteRoleMappingResponse> deleteRoleMapping(java.util.function.Function<DeleteRoleMappingRequest.Builder,ObjectBuilder<DeleteRoleMappingRequest>> fn) throws java.io.IOExceptionRemoves role mappings.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteServiceToken
public java.util.concurrent.CompletableFuture<DeleteServiceTokenResponse> deleteServiceToken(DeleteServiceTokenRequest request) throws java.io.IOExceptionDeletes a service account token.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteServiceToken
public final java.util.concurrent.CompletableFuture<DeleteServiceTokenResponse> deleteServiceToken(java.util.function.Function<DeleteServiceTokenRequest.Builder,ObjectBuilder<DeleteServiceTokenRequest>> fn) throws java.io.IOExceptionDeletes a service account token.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteUser
public java.util.concurrent.CompletableFuture<DeleteUserResponse> deleteUser(DeleteUserRequest request) throws java.io.IOExceptionDeletes users from the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
deleteUser
public final java.util.concurrent.CompletableFuture<DeleteUserResponse> deleteUser(java.util.function.Function<DeleteUserRequest.Builder,ObjectBuilder<DeleteUserRequest>> fn) throws java.io.IOExceptionDeletes users from the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
disableUser
public java.util.concurrent.CompletableFuture<DisableUserResponse> disableUser(DisableUserRequest request) throws java.io.IOExceptionDisables users in the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
disableUser
public final java.util.concurrent.CompletableFuture<DisableUserResponse> disableUser(java.util.function.Function<DisableUserRequest.Builder,ObjectBuilder<DisableUserRequest>> fn) throws java.io.IOExceptionDisables users in the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
enableUser
public java.util.concurrent.CompletableFuture<EnableUserResponse> enableUser(EnableUserRequest request) throws java.io.IOExceptionEnables users in the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
enableUser
public final java.util.concurrent.CompletableFuture<EnableUserResponse> enableUser(java.util.function.Function<EnableUserRequest.Builder,ObjectBuilder<EnableUserRequest>> fn) throws java.io.IOExceptionEnables users in the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getApiKey
public java.util.concurrent.CompletableFuture<GetApiKeyResponse> getApiKey(GetApiKeyRequest request) throws java.io.IOExceptionRetrieves information for one or more API keys.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getApiKey
public final java.util.concurrent.CompletableFuture<GetApiKeyResponse> getApiKey(java.util.function.Function<GetApiKeyRequest.Builder,ObjectBuilder<GetApiKeyRequest>> fn) throws java.io.IOExceptionRetrieves information for one or more API keys.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getBuiltinPrivileges
public java.util.concurrent.CompletableFuture<GetBuiltinPrivilegesResponse> getBuiltinPrivileges() throws java.io.IOExceptionRetrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getPrivileges
public java.util.concurrent.CompletableFuture<GetPrivilegesResponse> getPrivileges(GetPrivilegesRequest request) throws java.io.IOExceptionRetrieves application privileges.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getPrivileges
public final java.util.concurrent.CompletableFuture<GetPrivilegesResponse> getPrivileges(java.util.function.Function<GetPrivilegesRequest.Builder,ObjectBuilder<GetPrivilegesRequest>> fn) throws java.io.IOExceptionRetrieves application privileges.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRole
public java.util.concurrent.CompletableFuture<GetRoleResponse> getRole(GetRoleRequest request) throws java.io.IOExceptionRetrieves roles in the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRole
public final java.util.concurrent.CompletableFuture<GetRoleResponse> getRole(java.util.function.Function<GetRoleRequest.Builder,ObjectBuilder<GetRoleRequest>> fn) throws java.io.IOExceptionRetrieves roles in the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRoleMapping
public java.util.concurrent.CompletableFuture<GetRoleMappingResponse> getRoleMapping(GetRoleMappingRequest request) throws java.io.IOExceptionRetrieves role mappings.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getRoleMapping
public final java.util.concurrent.CompletableFuture<GetRoleMappingResponse> getRoleMapping(java.util.function.Function<GetRoleMappingRequest.Builder,ObjectBuilder<GetRoleMappingRequest>> fn) throws java.io.IOExceptionRetrieves role mappings.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getServiceAccounts
public java.util.concurrent.CompletableFuture<GetServiceAccountsResponse> getServiceAccounts(GetServiceAccountsRequest request) throws java.io.IOExceptionRetrieves information about service accounts.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getServiceAccounts
public final java.util.concurrent.CompletableFuture<GetServiceAccountsResponse> getServiceAccounts(java.util.function.Function<GetServiceAccountsRequest.Builder,ObjectBuilder<GetServiceAccountsRequest>> fn) throws java.io.IOExceptionRetrieves information about service accounts.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getServiceCredentials
public java.util.concurrent.CompletableFuture<GetServiceCredentialsResponse> getServiceCredentials(GetServiceCredentialsRequest request) throws java.io.IOExceptionRetrieves information of all service credentials for a service account.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getServiceCredentials
public final java.util.concurrent.CompletableFuture<GetServiceCredentialsResponse> getServiceCredentials(java.util.function.Function<GetServiceCredentialsRequest.Builder,ObjectBuilder<GetServiceCredentialsRequest>> fn) throws java.io.IOExceptionRetrieves information of all service credentials for a service account.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getToken
public java.util.concurrent.CompletableFuture<GetTokenResponse> getToken(GetTokenRequest request) throws java.io.IOExceptionCreates a bearer token for access without requiring basic authentication.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getToken
public final java.util.concurrent.CompletableFuture<GetTokenResponse> getToken(java.util.function.Function<GetTokenRequest.Builder,ObjectBuilder<GetTokenRequest>> fn) throws java.io.IOExceptionCreates a bearer token for access without requiring basic authentication.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getUser
public java.util.concurrent.CompletableFuture<GetUserResponse> getUser(GetUserRequest request) throws java.io.IOExceptionRetrieves information about users in the native realm and built-in users.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getUser
public final java.util.concurrent.CompletableFuture<GetUserResponse> getUser(java.util.function.Function<GetUserRequest.Builder,ObjectBuilder<GetUserRequest>> fn) throws java.io.IOExceptionRetrieves information about users in the native realm and built-in users.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getUserPrivileges
public java.util.concurrent.CompletableFuture<GetUserPrivilegesResponse> getUserPrivileges(GetUserPrivilegesRequest request) throws java.io.IOExceptionRetrieves security privileges for the logged in user.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
getUserPrivileges
public final java.util.concurrent.CompletableFuture<GetUserPrivilegesResponse> getUserPrivileges(java.util.function.Function<GetUserPrivilegesRequest.Builder,ObjectBuilder<GetUserPrivilegesRequest>> fn) throws java.io.IOExceptionRetrieves security privileges for the logged in user.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
grantApiKey
public java.util.concurrent.CompletableFuture<GrantApiKeyResponse> grantApiKey(GrantApiKeyRequest request) throws java.io.IOExceptionCreates an API key on behalf of another user.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
grantApiKey
public final java.util.concurrent.CompletableFuture<GrantApiKeyResponse> grantApiKey(java.util.function.Function<GrantApiKeyRequest.Builder,ObjectBuilder<GrantApiKeyRequest>> fn) throws java.io.IOExceptionCreates an API key on behalf of another user.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
hasPrivileges
public java.util.concurrent.CompletableFuture<HasPrivilegesResponse> hasPrivileges(HasPrivilegesRequest request) throws java.io.IOExceptionDetermines whether the specified user has a specified list of privileges.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
hasPrivileges
public final java.util.concurrent.CompletableFuture<HasPrivilegesResponse> hasPrivileges(java.util.function.Function<HasPrivilegesRequest.Builder,ObjectBuilder<HasPrivilegesRequest>> fn) throws java.io.IOExceptionDetermines whether the specified user has a specified list of privileges.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
invalidateApiKey
public java.util.concurrent.CompletableFuture<InvalidateApiKeyResponse> invalidateApiKey(InvalidateApiKeyRequest request) throws java.io.IOExceptionInvalidates one or more API keys.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
invalidateApiKey
public final java.util.concurrent.CompletableFuture<InvalidateApiKeyResponse> invalidateApiKey(java.util.function.Function<InvalidateApiKeyRequest.Builder,ObjectBuilder<InvalidateApiKeyRequest>> fn) throws java.io.IOExceptionInvalidates one or more API keys.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
invalidateToken
public java.util.concurrent.CompletableFuture<InvalidateTokenResponse> invalidateToken(InvalidateTokenRequest request) throws java.io.IOExceptionInvalidates one or more access tokens or refresh tokens.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
invalidateToken
public final java.util.concurrent.CompletableFuture<InvalidateTokenResponse> invalidateToken(java.util.function.Function<InvalidateTokenRequest.Builder,ObjectBuilder<InvalidateTokenRequest>> fn) throws java.io.IOExceptionInvalidates one or more access tokens or refresh tokens.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putPrivileges
public java.util.concurrent.CompletableFuture<PutPrivilegesResponse> putPrivileges(PutPrivilegesRequest request) throws java.io.IOExceptionAdds or updates application privileges.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putPrivileges
public final java.util.concurrent.CompletableFuture<PutPrivilegesResponse> putPrivileges(java.util.function.Function<PutPrivilegesRequest.Builder,ObjectBuilder<PutPrivilegesRequest>> fn) throws java.io.IOExceptionAdds or updates application privileges.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putRole
public java.util.concurrent.CompletableFuture<PutRoleResponse> putRole(PutRoleRequest request) throws java.io.IOExceptionAdds and updates roles in the native realm.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putRole
public final java.util.concurrent.CompletableFuture<PutRoleResponse> putRole(java.util.function.Function<PutRoleRequest.Builder,ObjectBuilder<PutRoleRequest>> fn) throws java.io.IOExceptionAdds and updates roles in the native realm.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putRoleMapping
public java.util.concurrent.CompletableFuture<PutRoleMappingResponse> putRoleMapping(PutRoleMappingRequest request) throws java.io.IOExceptionCreates and updates role mappings.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putRoleMapping
public final java.util.concurrent.CompletableFuture<PutRoleMappingResponse> putRoleMapping(java.util.function.Function<PutRoleMappingRequest.Builder,ObjectBuilder<PutRoleMappingRequest>> fn) throws java.io.IOExceptionCreates and updates role mappings.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putUser
public java.util.concurrent.CompletableFuture<PutUserResponse> putUser(PutUserRequest request) throws java.io.IOExceptionAdds and updates users in the native realm. These users are commonly referred to as native users.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
putUser
public final java.util.concurrent.CompletableFuture<PutUserResponse> putUser(java.util.function.Function<PutUserRequest.Builder,ObjectBuilder<PutUserRequest>> fn) throws java.io.IOExceptionAdds and updates users in the native realm. These users are commonly referred to as native users.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-