Class ElasticsearchSecurityAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchSecurityAsyncClient>
co.elastic.clients.elasticsearch.security.ElasticsearchSecurityAsyncClient
public class ElasticsearchSecurityAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchSecurityAsyncClient>
Client for the security namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchSecurityAsyncClient(ElasticsearchTransport transport)
ElasticsearchSecurityAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
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()
Changes the passwords of users in the native realm and built-in users.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()
Creates an API key for access without requiring basic authentication.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()
Retrieves information for one or more API keys.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()
Retrieves application privileges.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()
Retrieves roles in the native realm.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()
Retrieves role mappings.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()
Retrieves information about service accounts.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()
Creates a bearer token for access without requiring basic authentication.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()
Retrieves information about users in the native realm and built-in users.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()
Retrieves security privileges for the logged in user.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()
Determines whether the specified user has a specified list of privileges.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()
Invalidates one or more API keys.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()
Invalidates one or more access tokens or refresh tokens.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()
Adds or updates application privileges.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.ElasticsearchSecurityAsyncClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchSecurityAsyncClient
-
ElasticsearchSecurityAsyncClient
public ElasticsearchSecurityAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchSecurityAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchSecurityAsyncClient>
-
authenticate
public java.util.concurrent.CompletableFuture<AuthenticateResponse> authenticate() throws java.io.IOException, ElasticsearchExceptionEnables authentication as a user and retrieve information about the authenticated user.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
changePassword
public java.util.concurrent.CompletableFuture<ChangePasswordResponse> changePassword(ChangePasswordRequest request) throws java.io.IOException, ElasticsearchExceptionChanges the passwords of users in the native realm and built-in users.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionChanges the passwords of users in the native realm and built-in users.- Parameters:
fn
- a function that initializes a builder to create theChangePasswordRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
changePassword
public java.util.concurrent.CompletableFuture<ChangePasswordResponse> changePassword() throws java.io.IOException, ElasticsearchExceptionChanges the passwords of users in the native realm and built-in users.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
clearApiKeyCache
public java.util.concurrent.CompletableFuture<ClearApiKeyCacheResponse> clearApiKeyCache(ClearApiKeyCacheRequest request) throws java.io.IOException, ElasticsearchExceptionClear a subset or all entries from the API key cache.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionClear a subset or all entries from the API key cache.- Parameters:
fn
- a function that initializes a builder to create theClearApiKeyCacheRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
clearCachedPrivileges
public java.util.concurrent.CompletableFuture<ClearCachedPrivilegesResponse> clearCachedPrivileges(ClearCachedPrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionEvicts application privileges from the native application privileges cache.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionEvicts application privileges from the native application privileges cache.- Parameters:
fn
- a function that initializes a builder to create theClearCachedPrivilegesRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
clearCachedRealms
public java.util.concurrent.CompletableFuture<ClearCachedRealmsResponse> clearCachedRealms(ClearCachedRealmsRequest request) throws java.io.IOException, ElasticsearchExceptionEvicts users from the user cache. Can completely clear the cache or evict specific users.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionEvicts users from the user cache. Can completely clear the cache or evict specific users.- Parameters:
fn
- a function that initializes a builder to create theClearCachedRealmsRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
clearCachedRoles
public java.util.concurrent.CompletableFuture<ClearCachedRolesResponse> clearCachedRoles(ClearCachedRolesRequest request) throws java.io.IOException, ElasticsearchExceptionEvicts roles from the native role cache.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionEvicts roles from the native role cache.- Parameters:
fn
- a function that initializes a builder to create theClearCachedRolesRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
clearCachedServiceTokens
public java.util.concurrent.CompletableFuture<ClearCachedServiceTokensResponse> clearCachedServiceTokens(ClearCachedServiceTokensRequest request) throws java.io.IOException, ElasticsearchExceptionEvicts tokens from the service account token caches.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionEvicts tokens from the service account token caches.- Parameters:
fn
- a function that initializes a builder to create theClearCachedServiceTokensRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
createApiKey
public java.util.concurrent.CompletableFuture<CreateApiKeyResponse> createApiKey(CreateApiKeyRequest request) throws java.io.IOException, ElasticsearchExceptionCreates an API key for access without requiring basic authentication.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionCreates an API key for access without requiring basic authentication.- Parameters:
fn
- a function that initializes a builder to create theCreateApiKeyRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
createApiKey
public java.util.concurrent.CompletableFuture<CreateApiKeyResponse> createApiKey() throws java.io.IOException, ElasticsearchExceptionCreates an API key for access without requiring basic authentication.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
createServiceToken
public java.util.concurrent.CompletableFuture<CreateServiceTokenResponse> createServiceToken(CreateServiceTokenRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a service account token for access without requiring basic authentication.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionCreates a service account token for access without requiring basic authentication.- Parameters:
fn
- a function that initializes a builder to create theCreateServiceTokenRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
deletePrivileges
public java.util.concurrent.CompletableFuture<DeletePrivilegesResponse> deletePrivileges(DeletePrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionRemoves application privileges.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRemoves application privileges.- Parameters:
fn
- a function that initializes a builder to create theDeletePrivilegesRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
deleteRole
public java.util.concurrent.CompletableFuture<DeleteRoleResponse> deleteRole(DeleteRoleRequest request) throws java.io.IOException, ElasticsearchExceptionRemoves roles in the native realm.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRemoves roles in the native realm.- Parameters:
fn
- a function that initializes a builder to create theDeleteRoleRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
deleteRoleMapping
public java.util.concurrent.CompletableFuture<DeleteRoleMappingResponse> deleteRoleMapping(DeleteRoleMappingRequest request) throws java.io.IOException, ElasticsearchExceptionRemoves role mappings.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRemoves role mappings.- Parameters:
fn
- a function that initializes a builder to create theDeleteRoleMappingRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
deleteServiceToken
public java.util.concurrent.CompletableFuture<DeleteServiceTokenResponse> deleteServiceToken(DeleteServiceTokenRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes a service account token.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionDeletes a service account token.- Parameters:
fn
- a function that initializes a builder to create theDeleteServiceTokenRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
deleteUser
public java.util.concurrent.CompletableFuture<DeleteUserResponse> deleteUser(DeleteUserRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes users from the native realm.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionDeletes users from the native realm.- Parameters:
fn
- a function that initializes a builder to create theDeleteUserRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
disableUser
public java.util.concurrent.CompletableFuture<DisableUserResponse> disableUser(DisableUserRequest request) throws java.io.IOException, ElasticsearchExceptionDisables users in the native realm.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionDisables users in the native realm.- Parameters:
fn
- a function that initializes a builder to create theDisableUserRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
enableUser
public java.util.concurrent.CompletableFuture<EnableUserResponse> enableUser(EnableUserRequest request) throws java.io.IOException, ElasticsearchExceptionEnables users in the native realm.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionEnables users in the native realm.- Parameters:
fn
- a function that initializes a builder to create theEnableUserRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getApiKey
public java.util.concurrent.CompletableFuture<GetApiKeyResponse> getApiKey(GetApiKeyRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves information for one or more API keys.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRetrieves information for one or more API keys.- Parameters:
fn
- a function that initializes a builder to create theGetApiKeyRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getApiKey
public java.util.concurrent.CompletableFuture<GetApiKeyResponse> getApiKey() throws java.io.IOException, ElasticsearchExceptionRetrieves information for one or more API keys.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getBuiltinPrivileges
public java.util.concurrent.CompletableFuture<GetBuiltinPrivilegesResponse> getBuiltinPrivileges() throws java.io.IOException, ElasticsearchExceptionRetrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getPrivileges
public java.util.concurrent.CompletableFuture<GetPrivilegesResponse> getPrivileges(GetPrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves application privileges.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRetrieves application privileges.- Parameters:
fn
- a function that initializes a builder to create theGetPrivilegesRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getPrivileges
public java.util.concurrent.CompletableFuture<GetPrivilegesResponse> getPrivileges() throws java.io.IOException, ElasticsearchExceptionRetrieves application privileges.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getRole
public java.util.concurrent.CompletableFuture<GetRoleResponse> getRole(GetRoleRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves roles in the native realm.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRetrieves roles in the native realm.- Parameters:
fn
- a function that initializes a builder to create theGetRoleRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getRole
public java.util.concurrent.CompletableFuture<GetRoleResponse> getRole() throws java.io.IOException, ElasticsearchExceptionRetrieves roles in the native realm.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getRoleMapping
public java.util.concurrent.CompletableFuture<GetRoleMappingResponse> getRoleMapping(GetRoleMappingRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves role mappings.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRetrieves role mappings.- Parameters:
fn
- a function that initializes a builder to create theGetRoleMappingRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getRoleMapping
public java.util.concurrent.CompletableFuture<GetRoleMappingResponse> getRoleMapping() throws java.io.IOException, ElasticsearchExceptionRetrieves role mappings.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getServiceAccounts
public java.util.concurrent.CompletableFuture<GetServiceAccountsResponse> getServiceAccounts(GetServiceAccountsRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves information about service accounts.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRetrieves information about service accounts.- Parameters:
fn
- a function that initializes a builder to create theGetServiceAccountsRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getServiceAccounts
public java.util.concurrent.CompletableFuture<GetServiceAccountsResponse> getServiceAccounts() throws java.io.IOException, ElasticsearchExceptionRetrieves information about service accounts.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getServiceCredentials
public java.util.concurrent.CompletableFuture<GetServiceCredentialsResponse> getServiceCredentials(GetServiceCredentialsRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves information of all service credentials for a service account.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRetrieves information of all service credentials for a service account.- Parameters:
fn
- a function that initializes a builder to create theGetServiceCredentialsRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getToken
public java.util.concurrent.CompletableFuture<GetTokenResponse> getToken(GetTokenRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a bearer token for access without requiring basic authentication.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionCreates a bearer token for access without requiring basic authentication.- Parameters:
fn
- a function that initializes a builder to create theGetTokenRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getToken
public java.util.concurrent.CompletableFuture<GetTokenResponse> getToken() throws java.io.IOException, ElasticsearchExceptionCreates a bearer token for access without requiring basic authentication.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getUser
public java.util.concurrent.CompletableFuture<GetUserResponse> getUser(GetUserRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves information about users in the native realm and built-in users.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRetrieves information about users in the native realm and built-in users.- Parameters:
fn
- a function that initializes a builder to create theGetUserRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getUser
public java.util.concurrent.CompletableFuture<GetUserResponse> getUser() throws java.io.IOException, ElasticsearchExceptionRetrieves information about users in the native realm and built-in users.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getUserPrivileges
public java.util.concurrent.CompletableFuture<GetUserPrivilegesResponse> getUserPrivileges(GetUserPrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves security privileges for the logged in user.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionRetrieves security privileges for the logged in user.- Parameters:
fn
- a function that initializes a builder to create theGetUserPrivilegesRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getUserPrivileges
public java.util.concurrent.CompletableFuture<GetUserPrivilegesResponse> getUserPrivileges() throws java.io.IOException, ElasticsearchExceptionRetrieves security privileges for the logged in user.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
grantApiKey
public java.util.concurrent.CompletableFuture<GrantApiKeyResponse> grantApiKey(GrantApiKeyRequest request) throws java.io.IOException, ElasticsearchExceptionCreates an API key on behalf of another user.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionCreates an API key on behalf of another user.- Parameters:
fn
- a function that initializes a builder to create theGrantApiKeyRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
hasPrivileges
public java.util.concurrent.CompletableFuture<HasPrivilegesResponse> hasPrivileges(HasPrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionDetermines whether the specified user has a specified list of privileges.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionDetermines whether the specified user has a specified list of privileges.- Parameters:
fn
- a function that initializes a builder to create theHasPrivilegesRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
hasPrivileges
public java.util.concurrent.CompletableFuture<HasPrivilegesResponse> hasPrivileges() throws java.io.IOException, ElasticsearchExceptionDetermines whether the specified user has a specified list of privileges.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
invalidateApiKey
public java.util.concurrent.CompletableFuture<InvalidateApiKeyResponse> invalidateApiKey(InvalidateApiKeyRequest request) throws java.io.IOException, ElasticsearchExceptionInvalidates one or more API keys.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionInvalidates one or more API keys.- Parameters:
fn
- a function that initializes a builder to create theInvalidateApiKeyRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
invalidateApiKey
public java.util.concurrent.CompletableFuture<InvalidateApiKeyResponse> invalidateApiKey() throws java.io.IOException, ElasticsearchExceptionInvalidates one or more API keys.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
invalidateToken
public java.util.concurrent.CompletableFuture<InvalidateTokenResponse> invalidateToken(InvalidateTokenRequest request) throws java.io.IOException, ElasticsearchExceptionInvalidates one or more access tokens or refresh tokens.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionInvalidates one or more access tokens or refresh tokens.- Parameters:
fn
- a function that initializes a builder to create theInvalidateTokenRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
invalidateToken
public java.util.concurrent.CompletableFuture<InvalidateTokenResponse> invalidateToken() throws java.io.IOException, ElasticsearchExceptionInvalidates one or more access tokens or refresh tokens.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putPrivileges
public java.util.concurrent.CompletableFuture<PutPrivilegesResponse> putPrivileges(PutPrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionAdds or updates application privileges.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionAdds or updates application privileges.- Parameters:
fn
- a function that initializes a builder to create thePutPrivilegesRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putPrivileges
public java.util.concurrent.CompletableFuture<PutPrivilegesResponse> putPrivileges() throws java.io.IOException, ElasticsearchExceptionAdds or updates application privileges.- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putRole
public java.util.concurrent.CompletableFuture<PutRoleResponse> putRole(PutRoleRequest request) throws java.io.IOException, ElasticsearchExceptionAdds and updates roles in the native realm.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionAdds and updates roles in the native realm.- Parameters:
fn
- a function that initializes a builder to create thePutRoleRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putRoleMapping
public java.util.concurrent.CompletableFuture<PutRoleMappingResponse> putRoleMapping(PutRoleMappingRequest request) throws java.io.IOException, ElasticsearchExceptionCreates and updates role mappings.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionCreates and updates role mappings.- Parameters:
fn
- a function that initializes a builder to create thePutRoleMappingRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putUser
public java.util.concurrent.CompletableFuture<PutUserResponse> putUser(PutUserRequest request) throws java.io.IOException, ElasticsearchExceptionAdds and updates users in the native realm. These users are commonly referred to as native users.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException, ElasticsearchExceptionAdds and updates users in the native realm. These users are commonly referred to as native users.- Parameters:
fn
- a function that initializes a builder to create thePutUserRequest
- Throws:
java.io.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-