Class ElasticsearchSecurityClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchSecurityClient>
co.elastic.clients.elasticsearch.security.ElasticsearchSecurityClient
public class ElasticsearchSecurityClient extends ApiClient<ElasticsearchTransport,ElasticsearchSecurityClient>
Client for the security namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
Constructors Constructor Description ElasticsearchSecurityClient(ElasticsearchTransport transport)ElasticsearchSecurityClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and Type Method Description AuthenticateResponseauthenticate()Enables authentication as a user and retrieve information about the authenticated user.ChangePasswordResponsechangePassword()Changes the passwords of users in the native realm and built-in users.ChangePasswordResponsechangePassword(ChangePasswordRequest request)Changes the passwords of users in the native realm and built-in users.ChangePasswordResponsechangePassword(java.util.function.Function<ChangePasswordRequest.Builder,ObjectBuilder<ChangePasswordRequest>> fn)Changes the passwords of users in the native realm and built-in users.ClearApiKeyCacheResponseclearApiKeyCache(ClearApiKeyCacheRequest request)Clear a subset or all entries from the API key cache.ClearApiKeyCacheResponseclearApiKeyCache(java.util.function.Function<ClearApiKeyCacheRequest.Builder,ObjectBuilder<ClearApiKeyCacheRequest>> fn)Clear a subset or all entries from the API key cache.ClearCachedPrivilegesResponseclearCachedPrivileges(ClearCachedPrivilegesRequest request)Evicts application privileges from the native application privileges cache.ClearCachedPrivilegesResponseclearCachedPrivileges(java.util.function.Function<ClearCachedPrivilegesRequest.Builder,ObjectBuilder<ClearCachedPrivilegesRequest>> fn)Evicts application privileges from the native application privileges cache.ClearCachedRealmsResponseclearCachedRealms(ClearCachedRealmsRequest request)Evicts users from the user cache.ClearCachedRealmsResponseclearCachedRealms(java.util.function.Function<ClearCachedRealmsRequest.Builder,ObjectBuilder<ClearCachedRealmsRequest>> fn)Evicts users from the user cache.ClearCachedRolesResponseclearCachedRoles(ClearCachedRolesRequest request)Evicts roles from the native role cache.ClearCachedRolesResponseclearCachedRoles(java.util.function.Function<ClearCachedRolesRequest.Builder,ObjectBuilder<ClearCachedRolesRequest>> fn)Evicts roles from the native role cache.ClearCachedServiceTokensResponseclearCachedServiceTokens(ClearCachedServiceTokensRequest request)Evicts tokens from the service account token caches.ClearCachedServiceTokensResponseclearCachedServiceTokens(java.util.function.Function<ClearCachedServiceTokensRequest.Builder,ObjectBuilder<ClearCachedServiceTokensRequest>> fn)Evicts tokens from the service account token caches.CreateApiKeyResponsecreateApiKey()Creates an API key for access without requiring basic authentication.CreateApiKeyResponsecreateApiKey(CreateApiKeyRequest request)Creates an API key for access without requiring basic authentication.CreateApiKeyResponsecreateApiKey(java.util.function.Function<CreateApiKeyRequest.Builder,ObjectBuilder<CreateApiKeyRequest>> fn)Creates an API key for access without requiring basic authentication.CreateServiceTokenResponsecreateServiceToken(CreateServiceTokenRequest request)Creates a service account token for access without requiring basic authentication.CreateServiceTokenResponsecreateServiceToken(java.util.function.Function<CreateServiceTokenRequest.Builder,ObjectBuilder<CreateServiceTokenRequest>> fn)Creates a service account token for access without requiring basic authentication.DeletePrivilegesResponsedeletePrivileges(DeletePrivilegesRequest request)Removes application privileges.DeletePrivilegesResponsedeletePrivileges(java.util.function.Function<DeletePrivilegesRequest.Builder,ObjectBuilder<DeletePrivilegesRequest>> fn)Removes application privileges.DeleteRoleResponsedeleteRole(DeleteRoleRequest request)Removes roles in the native realm.DeleteRoleResponsedeleteRole(java.util.function.Function<DeleteRoleRequest.Builder,ObjectBuilder<DeleteRoleRequest>> fn)Removes roles in the native realm.DeleteRoleMappingResponsedeleteRoleMapping(DeleteRoleMappingRequest request)Removes role mappings.DeleteRoleMappingResponsedeleteRoleMapping(java.util.function.Function<DeleteRoleMappingRequest.Builder,ObjectBuilder<DeleteRoleMappingRequest>> fn)Removes role mappings.DeleteServiceTokenResponsedeleteServiceToken(DeleteServiceTokenRequest request)Deletes a service account token.DeleteServiceTokenResponsedeleteServiceToken(java.util.function.Function<DeleteServiceTokenRequest.Builder,ObjectBuilder<DeleteServiceTokenRequest>> fn)Deletes a service account token.DeleteUserResponsedeleteUser(DeleteUserRequest request)Deletes users from the native realm.DeleteUserResponsedeleteUser(java.util.function.Function<DeleteUserRequest.Builder,ObjectBuilder<DeleteUserRequest>> fn)Deletes users from the native realm.DisableUserResponsedisableUser(DisableUserRequest request)Disables users in the native realm.DisableUserResponsedisableUser(java.util.function.Function<DisableUserRequest.Builder,ObjectBuilder<DisableUserRequest>> fn)Disables users in the native realm.EnableUserResponseenableUser(EnableUserRequest request)Enables users in the native realm.EnableUserResponseenableUser(java.util.function.Function<EnableUserRequest.Builder,ObjectBuilder<EnableUserRequest>> fn)Enables users in the native realm.GetApiKeyResponsegetApiKey()Retrieves information for one or more API keys.GetApiKeyResponsegetApiKey(GetApiKeyRequest request)Retrieves information for one or more API keys.GetApiKeyResponsegetApiKey(java.util.function.Function<GetApiKeyRequest.Builder,ObjectBuilder<GetApiKeyRequest>> fn)Retrieves information for one or more API keys.GetBuiltinPrivilegesResponsegetBuiltinPrivileges()Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.GetPrivilegesResponsegetPrivileges()Retrieves application privileges.GetPrivilegesResponsegetPrivileges(GetPrivilegesRequest request)Retrieves application privileges.GetPrivilegesResponsegetPrivileges(java.util.function.Function<GetPrivilegesRequest.Builder,ObjectBuilder<GetPrivilegesRequest>> fn)Retrieves application privileges.GetRoleResponsegetRole()Retrieves roles in the native realm.GetRoleResponsegetRole(GetRoleRequest request)Retrieves roles in the native realm.GetRoleResponsegetRole(java.util.function.Function<GetRoleRequest.Builder,ObjectBuilder<GetRoleRequest>> fn)Retrieves roles in the native realm.GetRoleMappingResponsegetRoleMapping()Retrieves role mappings.GetRoleMappingResponsegetRoleMapping(GetRoleMappingRequest request)Retrieves role mappings.GetRoleMappingResponsegetRoleMapping(java.util.function.Function<GetRoleMappingRequest.Builder,ObjectBuilder<GetRoleMappingRequest>> fn)Retrieves role mappings.GetServiceAccountsResponsegetServiceAccounts()Retrieves information about service accounts.GetServiceAccountsResponsegetServiceAccounts(GetServiceAccountsRequest request)Retrieves information about service accounts.GetServiceAccountsResponsegetServiceAccounts(java.util.function.Function<GetServiceAccountsRequest.Builder,ObjectBuilder<GetServiceAccountsRequest>> fn)Retrieves information about service accounts.GetServiceCredentialsResponsegetServiceCredentials(GetServiceCredentialsRequest request)Retrieves information of all service credentials for a service account.GetServiceCredentialsResponsegetServiceCredentials(java.util.function.Function<GetServiceCredentialsRequest.Builder,ObjectBuilder<GetServiceCredentialsRequest>> fn)Retrieves information of all service credentials for a service account.GetTokenResponsegetToken()Creates a bearer token for access without requiring basic authentication.GetTokenResponsegetToken(GetTokenRequest request)Creates a bearer token for access without requiring basic authentication.GetTokenResponsegetToken(java.util.function.Function<GetTokenRequest.Builder,ObjectBuilder<GetTokenRequest>> fn)Creates a bearer token for access without requiring basic authentication.GetUserResponsegetUser()Retrieves information about users in the native realm and built-in users.GetUserResponsegetUser(GetUserRequest request)Retrieves information about users in the native realm and built-in users.GetUserResponsegetUser(java.util.function.Function<GetUserRequest.Builder,ObjectBuilder<GetUserRequest>> fn)Retrieves information about users in the native realm and built-in users.GetUserPrivilegesResponsegetUserPrivileges()Retrieves security privileges for the logged in user.GetUserPrivilegesResponsegetUserPrivileges(GetUserPrivilegesRequest request)Retrieves security privileges for the logged in user.GetUserPrivilegesResponsegetUserPrivileges(java.util.function.Function<GetUserPrivilegesRequest.Builder,ObjectBuilder<GetUserPrivilegesRequest>> fn)Retrieves security privileges for the logged in user.GrantApiKeyResponsegrantApiKey(GrantApiKeyRequest request)Creates an API key on behalf of another user.GrantApiKeyResponsegrantApiKey(java.util.function.Function<GrantApiKeyRequest.Builder,ObjectBuilder<GrantApiKeyRequest>> fn)Creates an API key on behalf of another user.HasPrivilegesResponsehasPrivileges()Determines whether the specified user has a specified list of privileges.HasPrivilegesResponsehasPrivileges(HasPrivilegesRequest request)Determines whether the specified user has a specified list of privileges.HasPrivilegesResponsehasPrivileges(java.util.function.Function<HasPrivilegesRequest.Builder,ObjectBuilder<HasPrivilegesRequest>> fn)Determines whether the specified user has a specified list of privileges.InvalidateApiKeyResponseinvalidateApiKey()Invalidates one or more API keys.InvalidateApiKeyResponseinvalidateApiKey(InvalidateApiKeyRequest request)Invalidates one or more API keys.InvalidateApiKeyResponseinvalidateApiKey(java.util.function.Function<InvalidateApiKeyRequest.Builder,ObjectBuilder<InvalidateApiKeyRequest>> fn)Invalidates one or more API keys.InvalidateTokenResponseinvalidateToken()Invalidates one or more access tokens or refresh tokens.InvalidateTokenResponseinvalidateToken(InvalidateTokenRequest request)Invalidates one or more access tokens or refresh tokens.InvalidateTokenResponseinvalidateToken(java.util.function.Function<InvalidateTokenRequest.Builder,ObjectBuilder<InvalidateTokenRequest>> fn)Invalidates one or more access tokens or refresh tokens.PutPrivilegesResponseputPrivileges()Adds or updates application privileges.PutPrivilegesResponseputPrivileges(PutPrivilegesRequest request)Adds or updates application privileges.PutPrivilegesResponseputPrivileges(java.util.function.Function<PutPrivilegesRequest.Builder,ObjectBuilder<PutPrivilegesRequest>> fn)Adds or updates application privileges.PutRoleResponseputRole(PutRoleRequest request)Adds and updates roles in the native realm.PutRoleResponseputRole(java.util.function.Function<PutRoleRequest.Builder,ObjectBuilder<PutRoleRequest>> fn)Adds and updates roles in the native realm.PutRoleMappingResponseputRoleMapping(PutRoleMappingRequest request)Creates and updates role mappings.PutRoleMappingResponseputRoleMapping(java.util.function.Function<PutRoleMappingRequest.Builder,ObjectBuilder<PutRoleMappingRequest>> fn)Creates and updates role mappings.PutUserResponseputUser(PutUserRequest request)Adds and updates users in the native realm.PutUserResponseputUser(java.util.function.Function<PutUserRequest.Builder,ObjectBuilder<PutUserRequest>> fn)Adds and updates users in the native realm.ElasticsearchSecurityClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchSecurityClient
-
ElasticsearchSecurityClient
public ElasticsearchSecurityClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchSecurityClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchSecurityClient>
-
authenticate
Enables authentication as a user and retrieve information about the authenticated user.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
changePassword
public ChangePasswordResponse changePassword(ChangePasswordRequest request) throws java.io.IOException, ElasticsearchExceptionChanges the passwords of users in the native realm and built-in users.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
changePassword
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
changePassword
Changes the passwords of users in the native realm and built-in users.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearApiKeyCache
public ClearApiKeyCacheResponse clearApiKeyCache(ClearApiKeyCacheRequest request) throws java.io.IOException, ElasticsearchExceptionClear a subset or all entries from the API key cache.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearApiKeyCache
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCachedPrivileges
public ClearCachedPrivilegesResponse clearCachedPrivileges(ClearCachedPrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionEvicts application privileges from the native application privileges cache.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCachedPrivileges
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCachedRealms
public 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCachedRealms
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCachedRoles
public ClearCachedRolesResponse clearCachedRoles(ClearCachedRolesRequest request) throws java.io.IOException, ElasticsearchExceptionEvicts roles from the native role cache.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCachedRoles
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCachedServiceTokens
public ClearCachedServiceTokensResponse clearCachedServiceTokens(ClearCachedServiceTokensRequest request) throws java.io.IOException, ElasticsearchExceptionEvicts tokens from the service account token caches.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCachedServiceTokens
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
createApiKey
public CreateApiKeyResponse createApiKey(CreateApiKeyRequest request) throws java.io.IOException, ElasticsearchExceptionCreates an API key for access without requiring basic authentication.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
createApiKey
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
createApiKey
Creates an API key for access without requiring basic authentication.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
createServiceToken
public CreateServiceTokenResponse createServiceToken(CreateServiceTokenRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a service account token for access without requiring basic authentication.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
createServiceToken
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deletePrivileges
public DeletePrivilegesResponse deletePrivileges(DeletePrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionRemoves application privileges.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deletePrivileges
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteRole
public DeleteRoleResponse deleteRole(DeleteRoleRequest request) throws java.io.IOException, ElasticsearchExceptionRemoves roles in the native realm.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteRole
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteRoleMapping
public DeleteRoleMappingResponse deleteRoleMapping(DeleteRoleMappingRequest request) throws java.io.IOException, ElasticsearchExceptionRemoves role mappings.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteRoleMapping
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteServiceToken
public DeleteServiceTokenResponse deleteServiceToken(DeleteServiceTokenRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes a service account token.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteServiceToken
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteUser
public DeleteUserResponse deleteUser(DeleteUserRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes users from the native realm.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteUser
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
disableUser
public DisableUserResponse disableUser(DisableUserRequest request) throws java.io.IOException, ElasticsearchExceptionDisables users in the native realm.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
disableUser
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
enableUser
public EnableUserResponse enableUser(EnableUserRequest request) throws java.io.IOException, ElasticsearchExceptionEnables users in the native realm.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
enableUser
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getApiKey
public GetApiKeyResponse getApiKey(GetApiKeyRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves information for one or more API keys.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getApiKey
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getApiKey
Retrieves information for one or more API keys.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getBuiltinPrivileges
public 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getPrivileges
public GetPrivilegesResponse getPrivileges(GetPrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves application privileges.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getPrivileges
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getPrivileges
Retrieves application privileges.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getRole
public GetRoleResponse getRole(GetRoleRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves roles in the native realm.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getRole
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getRole
Retrieves roles in the native realm.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getRoleMapping
public GetRoleMappingResponse getRoleMapping(GetRoleMappingRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves role mappings.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getRoleMapping
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getRoleMapping
Retrieves role mappings.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getServiceAccounts
public GetServiceAccountsResponse getServiceAccounts(GetServiceAccountsRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves information about service accounts.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getServiceAccounts
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getServiceAccounts
public GetServiceAccountsResponse getServiceAccounts() throws java.io.IOException, ElasticsearchExceptionRetrieves information about service accounts.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getServiceCredentials
public GetServiceCredentialsResponse getServiceCredentials(GetServiceCredentialsRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves information of all service credentials for a service account.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getServiceCredentials
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getToken
public GetTokenResponse getToken(GetTokenRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a bearer token for access without requiring basic authentication.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getToken
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getToken
Creates a bearer token for access without requiring basic authentication.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getUser
public GetUserResponse getUser(GetUserRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves information about users in the native realm and built-in users.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getUser
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getUser
Retrieves information about users in the native realm and built-in users.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getUserPrivileges
public GetUserPrivilegesResponse getUserPrivileges(GetUserPrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves security privileges for the logged in user.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getUserPrivileges
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getUserPrivileges
public GetUserPrivilegesResponse getUserPrivileges() throws java.io.IOException, ElasticsearchExceptionRetrieves security privileges for the logged in user.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
grantApiKey
public GrantApiKeyResponse grantApiKey(GrantApiKeyRequest request) throws java.io.IOException, ElasticsearchExceptionCreates an API key on behalf of another user.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
grantApiKey
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
hasPrivileges
public HasPrivilegesResponse hasPrivileges(HasPrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionDetermines whether the specified user has a specified list of privileges.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
hasPrivileges
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
hasPrivileges
Determines whether the specified user has a specified list of privileges.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
invalidateApiKey
public InvalidateApiKeyResponse invalidateApiKey(InvalidateApiKeyRequest request) throws java.io.IOException, ElasticsearchExceptionInvalidates one or more API keys.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
invalidateApiKey
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
invalidateApiKey
public InvalidateApiKeyResponse invalidateApiKey() throws java.io.IOException, ElasticsearchExceptionInvalidates one or more API keys.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
invalidateToken
public InvalidateTokenResponse invalidateToken(InvalidateTokenRequest request) throws java.io.IOException, ElasticsearchExceptionInvalidates one or more access tokens or refresh tokens.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
invalidateToken
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
invalidateToken
Invalidates one or more access tokens or refresh tokens.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putPrivileges
public PutPrivilegesResponse putPrivileges(PutPrivilegesRequest request) throws java.io.IOException, ElasticsearchExceptionAdds or updates application privileges.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putPrivileges
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putPrivileges
Adds or updates application privileges.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putRole
public PutRoleResponse putRole(PutRoleRequest request) throws java.io.IOException, ElasticsearchExceptionAdds and updates roles in the native realm.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putRole
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putRoleMapping
public PutRoleMappingResponse putRoleMapping(PutRoleMappingRequest request) throws java.io.IOException, ElasticsearchExceptionCreates and updates role mappings.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putRoleMapping
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putUser
public 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putUser
public final 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-