Class ElasticsearchSecurityClient
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchSecurityClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionCreates or updates a user profile on behalf of another user.activateUserProfile
(Function<ActivateUserProfileRequest.Builder, ObjectBuilder<ActivateUserProfileRequest>> fn) Creates or updates a user profile on behalf of another user.Enables you to submit a request with a basic auth header to authenticate a user and retrieve information about the authenticated user.bulkDeleteRole
(BulkDeleteRoleRequest request) The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.final BulkDeleteRoleResponse
The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.bulkPutRole
(BulkPutRoleRequest request) The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.final BulkPutRoleResponse
The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.Changes the passwords of users in the native realm and built-in users.changePassword
(ChangePasswordRequest request) Changes the passwords of users in the native realm and built-in users.final ChangePasswordResponse
Changes the passwords of users in the native realm and built-in users.clearApiKeyCache
(ClearApiKeyCacheRequest request) Evicts a subset of all entries from the API key cache.final ClearApiKeyCacheResponse
clearApiKeyCache
(Function<ClearApiKeyCacheRequest.Builder, ObjectBuilder<ClearApiKeyCacheRequest>> fn) Evicts a subset of all entries from the API key cache.Evicts application privileges from the native application privileges cache.clearCachedPrivileges
(Function<ClearCachedPrivilegesRequest.Builder, ObjectBuilder<ClearCachedPrivilegesRequest>> fn) Evicts application privileges from the native application privileges cache.Evicts users from the user cache.clearCachedRealms
(Function<ClearCachedRealmsRequest.Builder, ObjectBuilder<ClearCachedRealmsRequest>> fn) Evicts users from the user cache.clearCachedRoles
(ClearCachedRolesRequest request) Evicts roles from the native role cache.final ClearCachedRolesResponse
clearCachedRoles
(Function<ClearCachedRolesRequest.Builder, ObjectBuilder<ClearCachedRolesRequest>> fn) Evicts roles from the native role cache.Evicts tokens from the service account token caches.clearCachedServiceTokens
(Function<ClearCachedServiceTokensRequest.Builder, ObjectBuilder<ClearCachedServiceTokensRequest>> fn) Evicts tokens from the service account token caches.Creates an API key for access without requiring basic authentication.createApiKey
(CreateApiKeyRequest request) Creates an API key for access without requiring basic authentication.final CreateApiKeyResponse
Creates an API key for access without requiring basic authentication.Creates a service accounts token for access without requiring basic authentication.createServiceToken
(Function<CreateServiceTokenRequest.Builder, ObjectBuilder<CreateServiceTokenRequest>> fn) Creates a service accounts token for access without requiring basic authentication.deletePrivileges
(DeletePrivilegesRequest request) Removes application privileges.final DeletePrivilegesResponse
deletePrivileges
(Function<DeletePrivilegesRequest.Builder, ObjectBuilder<DeletePrivilegesRequest>> fn) Removes application privileges.deleteRole
(DeleteRoleRequest request) Removes roles in the native realm.final DeleteRoleResponse
Removes roles in the native realm.Removes role mappings.deleteRoleMapping
(Function<DeleteRoleMappingRequest.Builder, ObjectBuilder<DeleteRoleMappingRequest>> fn) Removes role mappings.Deletes a service account token.deleteServiceToken
(Function<DeleteServiceTokenRequest.Builder, ObjectBuilder<DeleteServiceTokenRequest>> fn) Deletes a service account token.deleteUser
(DeleteUserRequest request) Deletes users from the native realm.final DeleteUserResponse
Deletes users from the native realm.disableUser
(DisableUserRequest request) Disables users in the native realm.final DisableUserResponse
Disables users in the native realm.Disables a user profile so it's not visible in user profile searches.disableUserProfile
(Function<DisableUserProfileRequest.Builder, ObjectBuilder<DisableUserProfileRequest>> fn) Disables a user profile so it's not visible in user profile searches.enableUser
(EnableUserRequest request) Enables users in the native realm.final EnableUserResponse
Enables users in the native realm.Enables a user profile so it's visible in user profile searches.enableUserProfile
(Function<EnableUserProfileRequest.Builder, ObjectBuilder<EnableUserProfileRequest>> fn) Enables a user profile so it's visible in user profile searches.Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster.Allows a new node to join an existing cluster with security features enabled.Retrieves information for one or more API keys.getApiKey
(GetApiKeyRequest request) Retrieves information for one or more API keys.final GetApiKeyResponse
Retrieves information for one or more API keys.Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.Retrieves application privileges.getPrivileges
(GetPrivilegesRequest request) Retrieves application privileges.final GetPrivilegesResponse
Retrieves application privileges.getRole()
The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.getRole
(GetRoleRequest request) The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.final GetRoleResponse
The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.Retrieves role mappings.getRoleMapping
(GetRoleMappingRequest request) Retrieves role mappings.final GetRoleMappingResponse
Retrieves role mappings.This API returns a list of service accounts that match the provided path parameter(s).This API returns a list of service accounts that match the provided path parameter(s).getServiceAccounts
(Function<GetServiceAccountsRequest.Builder, ObjectBuilder<GetServiceAccountsRequest>> fn) This API returns a list of service accounts that match the provided path parameter(s).Retrieves information of all service credentials for a service account.getServiceCredentials
(Function<GetServiceCredentialsRequest.Builder, ObjectBuilder<GetServiceCredentialsRequest>> fn) Retrieves information of all service credentials for a service account.getToken()
Creates a bearer token for access without requiring basic authentication.getToken
(GetTokenRequest request) Creates a bearer token for access without requiring basic authentication.final GetTokenResponse
Creates a bearer token for access without requiring basic authentication.getUser()
Retrieves information about users in the native realm and built-in users.getUser
(GetUserRequest request) Retrieves information about users in the native realm and built-in users.final GetUserResponse
Retrieves information about users in the native realm and built-in users.Retrieves security privileges for the logged in user.Retrieves security privileges for the logged in user.getUserPrivileges
(Function<GetUserPrivilegesRequest.Builder, ObjectBuilder<GetUserPrivilegesRequest>> fn) Retrieves security privileges for the logged in user.getUserProfile
(GetUserProfileRequest request) Retrieves a user's profile using the unique profile ID.final GetUserProfileResponse
Retrieves a user's profile using the unique profile ID.grantApiKey
(GrantApiKeyRequest request) Creates an API key on behalf of another user.final GrantApiKeyResponse
Creates an API key on behalf of another user.Determines whether the specified user has a specified list of privileges.hasPrivileges
(HasPrivilegesRequest request) Determines whether the specified user has a specified list of privileges.final HasPrivilegesResponse
Determines whether the specified user has a specified list of privileges.Determines whether the users associated with the specified profile IDs have all the requested privileges.hasPrivilegesUserProfile
(Function<HasPrivilegesUserProfileRequest.Builder, ObjectBuilder<HasPrivilegesUserProfileRequest>> fn) Determines whether the users associated with the specified profile IDs have all the requested privileges.Invalidates one or more API keys.invalidateApiKey
(InvalidateApiKeyRequest request) Invalidates one or more API keys.final InvalidateApiKeyResponse
invalidateApiKey
(Function<InvalidateApiKeyRequest.Builder, ObjectBuilder<InvalidateApiKeyRequest>> fn) Invalidates one or more API keys.Invalidates one or more access tokens or refresh tokens.invalidateToken
(InvalidateTokenRequest request) Invalidates one or more access tokens or refresh tokens.final InvalidateTokenResponse
Invalidates one or more access tokens or refresh tokens.Adds or updates application privileges.putPrivileges
(PutPrivilegesRequest request) Adds or updates application privileges.final PutPrivilegesResponse
Adds or updates application privileges.putRole
(PutRoleRequest request) The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.final PutRoleResponse
The role management APIs are generally the preferred way to manage roles, rather than using file-based role management.putRoleMapping
(PutRoleMappingRequest request) Creates and updates role mappings.final PutRoleMappingResponse
Creates and updates role mappings.putUser
(PutUserRequest request) Adds and updates users in the native realm.final PutUserResponse
Adds and updates users in the native realm.Retrieves information for API keys in a paginated manner.queryApiKeys
(QueryApiKeysRequest request) Retrieves information for API keys in a paginated manner.final QueryApiKeysResponse
Retrieves information for API keys in a paginated manner.Retrieves roles in a paginated manner.queryRole
(QueryRoleRequest request) Retrieves roles in a paginated manner.final QueryRoleResponse
Retrieves roles in a paginated manner.Retrieves information for Users in a paginated manner.queryUser
(QueryUserRequest request) Retrieves information for Users in a paginated manner.final QueryUserResponse
Retrieves information for Users in a paginated manner.samlAuthenticate
(SamlAuthenticateRequest request) Submits a SAML Response message to Elasticsearch for consumption.final SamlAuthenticateResponse
samlAuthenticate
(Function<SamlAuthenticateRequest.Builder, ObjectBuilder<SamlAuthenticateRequest>> fn) Submits a SAML Response message to Elasticsearch for consumption.Verifies the logout response sent from the SAML IdP.final BooleanResponse
samlCompleteLogout
(Function<SamlCompleteLogoutRequest.Builder, ObjectBuilder<SamlCompleteLogoutRequest>> fn) Verifies the logout response sent from the SAML IdP.samlInvalidate
(SamlInvalidateRequest request) Submits a SAML LogoutRequest message to Elasticsearch for consumption.final SamlInvalidateResponse
Submits a SAML LogoutRequest message to Elasticsearch for consumption.samlLogout
(SamlLogoutRequest request) Submits a request to invalidate an access token and refresh token.final SamlLogoutResponse
Submits a request to invalidate an access token and refresh token.Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch.Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch.samlPrepareAuthentication
(Function<SamlPrepareAuthenticationRequest.Builder, ObjectBuilder<SamlPrepareAuthenticationRequest>> fn) Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch.Generate SAML metadata for a SAML 2.0 Service Provider.samlServiceProviderMetadata
(Function<SamlServiceProviderMetadataRequest.Builder, ObjectBuilder<SamlServiceProviderMetadataRequest>> fn) Generate SAML metadata for a SAML 2.0 Service Provider.Get suggestions for user profiles that match specified search criteria.Get suggestions for user profiles that match specified search criteria.suggestUserProfiles
(Function<SuggestUserProfilesRequest.Builder, ObjectBuilder<SuggestUserProfilesRequest>> fn) Get suggestions for user profiles that match specified search criteria.updateApiKey
(UpdateApiKeyRequest request) Updates attributes of an existing API key.final UpdateApiKeyResponse
Updates attributes of an existing API key.Updates specific data for the user profile that's associated with the specified unique ID.updateUserProfileData
(Function<UpdateUserProfileDataRequest.Builder, ObjectBuilder<UpdateUserProfileDataRequest>> fn) Updates specific data for the user profile that's associated with the specified unique ID.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchSecurityClient
-
ElasticsearchSecurityClient
public ElasticsearchSecurityClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchSecurityClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchSecurityClient>
-
activateUserProfile
public ActivateUserProfileResponse activateUserProfile(ActivateUserProfileRequest request) throws IOException, ElasticsearchException Creates or updates a user profile on behalf of another user.- Throws:
IOException
ElasticsearchException
- See Also:
-
activateUserProfile
public final ActivateUserProfileResponse activateUserProfile(Function<ActivateUserProfileRequest.Builder, ObjectBuilder<ActivateUserProfileRequest>> fn) throws IOException, ElasticsearchExceptionCreates or updates a user profile on behalf of another user.- Parameters:
fn
- a function that initializes a builder to create theActivateUserProfileRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
authenticate
Enables you to submit a request with a basic auth header to authenticate a user and retrieve information about the authenticated user. A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. If the user cannot be authenticated, this API returns a 401 status code.- Throws:
IOException
ElasticsearchException
- See Also:
-
bulkDeleteRole
public BulkDeleteRoleResponse bulkDeleteRole(BulkDeleteRoleRequest request) throws IOException, ElasticsearchException The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The bulk delete roles API cannot delete roles that are defined in roles files.- Throws:
IOException
ElasticsearchException
- See Also:
-
bulkDeleteRole
public final BulkDeleteRoleResponse bulkDeleteRole(Function<BulkDeleteRoleRequest.Builder, ObjectBuilder<BulkDeleteRoleRequest>> fn) throws IOException, ElasticsearchExceptionThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The bulk delete roles API cannot delete roles that are defined in roles files.- Parameters:
fn
- a function that initializes a builder to create theBulkDeleteRoleRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
bulkPutRole
public BulkPutRoleResponse bulkPutRole(BulkPutRoleRequest request) throws IOException, ElasticsearchException The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The bulk create or update roles API cannot update roles that are defined in roles files.- Throws:
IOException
ElasticsearchException
- See Also:
-
bulkPutRole
public final BulkPutRoleResponse bulkPutRole(Function<BulkPutRoleRequest.Builder, ObjectBuilder<BulkPutRoleRequest>> fn) throws IOException, ElasticsearchExceptionThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The bulk create or update roles API cannot update roles that are defined in roles files.- Parameters:
fn
- a function that initializes a builder to create theBulkPutRoleRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
changePassword
public ChangePasswordResponse changePassword(ChangePasswordRequest request) throws IOException, ElasticsearchException Changes the passwords of users in the native realm and built-in users.- Throws:
IOException
ElasticsearchException
- See Also:
-
changePassword
public final ChangePasswordResponse changePassword(Function<ChangePasswordRequest.Builder, ObjectBuilder<ChangePasswordRequest>> fn) throws 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:
IOException
ElasticsearchException
- See Also:
-
changePassword
Changes the passwords of users in the native realm and built-in users.- Throws:
IOException
ElasticsearchException
- See Also:
-
clearApiKeyCache
public ClearApiKeyCacheResponse clearApiKeyCache(ClearApiKeyCacheRequest request) throws IOException, ElasticsearchException Evicts a subset of all entries from the API key cache. The cache is also automatically cleared on state changes of the security index.- Throws:
IOException
ElasticsearchException
- See Also:
-
clearApiKeyCache
public final ClearApiKeyCacheResponse clearApiKeyCache(Function<ClearApiKeyCacheRequest.Builder, ObjectBuilder<ClearApiKeyCacheRequest>> fn) throws IOException, ElasticsearchExceptionEvicts a subset of all entries from the API key cache. The cache is also automatically cleared on state changes of the security index.- Parameters:
fn
- a function that initializes a builder to create theClearApiKeyCacheRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
clearCachedPrivileges
public ClearCachedPrivilegesResponse clearCachedPrivileges(ClearCachedPrivilegesRequest request) throws IOException, ElasticsearchException Evicts application privileges from the native application privileges cache.- Throws:
IOException
ElasticsearchException
- See Also:
-
clearCachedPrivileges
public final ClearCachedPrivilegesResponse clearCachedPrivileges(Function<ClearCachedPrivilegesRequest.Builder, ObjectBuilder<ClearCachedPrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionEvicts application privileges from the native application privileges cache.- Parameters:
fn
- a function that initializes a builder to create theClearCachedPrivilegesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
clearCachedRealms
public ClearCachedRealmsResponse clearCachedRealms(ClearCachedRealmsRequest request) throws IOException, ElasticsearchException Evicts users from the user cache. Can completely clear the cache or evict specific users.- Throws:
IOException
ElasticsearchException
- See Also:
-
clearCachedRealms
public final ClearCachedRealmsResponse clearCachedRealms(Function<ClearCachedRealmsRequest.Builder, ObjectBuilder<ClearCachedRealmsRequest>> fn) throws 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:
IOException
ElasticsearchException
- See Also:
-
clearCachedRoles
public ClearCachedRolesResponse clearCachedRoles(ClearCachedRolesRequest request) throws IOException, ElasticsearchException Evicts roles from the native role cache.- Throws:
IOException
ElasticsearchException
- See Also:
-
clearCachedRoles
public final ClearCachedRolesResponse clearCachedRoles(Function<ClearCachedRolesRequest.Builder, ObjectBuilder<ClearCachedRolesRequest>> fn) throws IOException, ElasticsearchExceptionEvicts roles from the native role cache.- Parameters:
fn
- a function that initializes a builder to create theClearCachedRolesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
clearCachedServiceTokens
public ClearCachedServiceTokensResponse clearCachedServiceTokens(ClearCachedServiceTokensRequest request) throws IOException, ElasticsearchException Evicts tokens from the service account token caches.- Throws:
IOException
ElasticsearchException
- See Also:
-
clearCachedServiceTokens
public final ClearCachedServiceTokensResponse clearCachedServiceTokens(Function<ClearCachedServiceTokensRequest.Builder, ObjectBuilder<ClearCachedServiceTokensRequest>> fn) throws IOException, ElasticsearchExceptionEvicts tokens from the service account token caches.- Parameters:
fn
- a function that initializes a builder to create theClearCachedServiceTokensRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
createApiKey
public CreateApiKeyResponse createApiKey(CreateApiKeyRequest request) throws IOException, ElasticsearchException Creates an API key for access without requiring basic authentication. A successful request returns a JSON structure that contains the API key, its unique id, and its name. If applicable, it also returns expiration information for the API key in milliseconds. NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys.- Throws:
IOException
ElasticsearchException
- See Also:
-
createApiKey
public final CreateApiKeyResponse createApiKey(Function<CreateApiKeyRequest.Builder, ObjectBuilder<CreateApiKeyRequest>> fn) throws IOException, ElasticsearchExceptionCreates an API key for access without requiring basic authentication. A successful request returns a JSON structure that contains the API key, its unique id, and its name. If applicable, it also returns expiration information for the API key in milliseconds. NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys.- Parameters:
fn
- a function that initializes a builder to create theCreateApiKeyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
createApiKey
Creates an API key for access without requiring basic authentication. A successful request returns a JSON structure that contains the API key, its unique id, and its name. If applicable, it also returns expiration information for the API key in milliseconds. NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys.- Throws:
IOException
ElasticsearchException
- See Also:
-
createServiceToken
public CreateServiceTokenResponse createServiceToken(CreateServiceTokenRequest request) throws IOException, ElasticsearchException Creates a service accounts token for access without requiring basic authentication.- Throws:
IOException
ElasticsearchException
- See Also:
-
createServiceToken
public final CreateServiceTokenResponse createServiceToken(Function<CreateServiceTokenRequest.Builder, ObjectBuilder<CreateServiceTokenRequest>> fn) throws IOException, ElasticsearchExceptionCreates a service accounts token for access without requiring basic authentication.- Parameters:
fn
- a function that initializes a builder to create theCreateServiceTokenRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
deletePrivileges
public DeletePrivilegesResponse deletePrivileges(DeletePrivilegesRequest request) throws IOException, ElasticsearchException Removes application privileges.- Throws:
IOException
ElasticsearchException
- See Also:
-
deletePrivileges
public final DeletePrivilegesResponse deletePrivileges(Function<DeletePrivilegesRequest.Builder, ObjectBuilder<DeletePrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionRemoves application privileges.- Parameters:
fn
- a function that initializes a builder to create theDeletePrivilegesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteRole
public DeleteRoleResponse deleteRole(DeleteRoleRequest request) throws IOException, ElasticsearchException Removes roles in the native realm.- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteRole
public final DeleteRoleResponse deleteRole(Function<DeleteRoleRequest.Builder, ObjectBuilder<DeleteRoleRequest>> fn) throws IOException, ElasticsearchExceptionRemoves roles in the native realm.- Parameters:
fn
- a function that initializes a builder to create theDeleteRoleRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteRoleMapping
public DeleteRoleMappingResponse deleteRoleMapping(DeleteRoleMappingRequest request) throws IOException, ElasticsearchException Removes role mappings.- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteRoleMapping
public final DeleteRoleMappingResponse deleteRoleMapping(Function<DeleteRoleMappingRequest.Builder, ObjectBuilder<DeleteRoleMappingRequest>> fn) throws IOException, ElasticsearchExceptionRemoves role mappings.- Parameters:
fn
- a function that initializes a builder to create theDeleteRoleMappingRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteServiceToken
public DeleteServiceTokenResponse deleteServiceToken(DeleteServiceTokenRequest request) throws IOException, ElasticsearchException Deletes a service account token.- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteServiceToken
public final DeleteServiceTokenResponse deleteServiceToken(Function<DeleteServiceTokenRequest.Builder, ObjectBuilder<DeleteServiceTokenRequest>> fn) throws IOException, ElasticsearchExceptionDeletes a service account token.- Parameters:
fn
- a function that initializes a builder to create theDeleteServiceTokenRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteUser
public DeleteUserResponse deleteUser(DeleteUserRequest request) throws IOException, ElasticsearchException Deletes users from the native realm.- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteUser
public final DeleteUserResponse deleteUser(Function<DeleteUserRequest.Builder, ObjectBuilder<DeleteUserRequest>> fn) throws IOException, ElasticsearchExceptionDeletes users from the native realm.- Parameters:
fn
- a function that initializes a builder to create theDeleteUserRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
disableUser
public DisableUserResponse disableUser(DisableUserRequest request) throws IOException, ElasticsearchException Disables users in the native realm.- Throws:
IOException
ElasticsearchException
- See Also:
-
disableUser
public final DisableUserResponse disableUser(Function<DisableUserRequest.Builder, ObjectBuilder<DisableUserRequest>> fn) throws IOException, ElasticsearchExceptionDisables users in the native realm.- Parameters:
fn
- a function that initializes a builder to create theDisableUserRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
disableUserProfile
public DisableUserProfileResponse disableUserProfile(DisableUserProfileRequest request) throws IOException, ElasticsearchException Disables a user profile so it's not visible in user profile searches.- Throws:
IOException
ElasticsearchException
- See Also:
-
disableUserProfile
public final DisableUserProfileResponse disableUserProfile(Function<DisableUserProfileRequest.Builder, ObjectBuilder<DisableUserProfileRequest>> fn) throws IOException, ElasticsearchExceptionDisables a user profile so it's not visible in user profile searches.- Parameters:
fn
- a function that initializes a builder to create theDisableUserProfileRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
enableUser
public EnableUserResponse enableUser(EnableUserRequest request) throws IOException, ElasticsearchException Enables users in the native realm.- Throws:
IOException
ElasticsearchException
- See Also:
-
enableUser
public final EnableUserResponse enableUser(Function<EnableUserRequest.Builder, ObjectBuilder<EnableUserRequest>> fn) throws IOException, ElasticsearchExceptionEnables users in the native realm.- Parameters:
fn
- a function that initializes a builder to create theEnableUserRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
enableUserProfile
public EnableUserProfileResponse enableUserProfile(EnableUserProfileRequest request) throws IOException, ElasticsearchException Enables a user profile so it's visible in user profile searches.- Throws:
IOException
ElasticsearchException
- See Also:
-
enableUserProfile
public final EnableUserProfileResponse enableUserProfile(Function<EnableUserProfileRequest.Builder, ObjectBuilder<EnableUserProfileRequest>> fn) throws IOException, ElasticsearchExceptionEnables a user profile so it's visible in user profile searches.- Parameters:
fn
- a function that initializes a builder to create theEnableUserProfileRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
enrollKibana
Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster.- Throws:
IOException
ElasticsearchException
- See Also:
-
enrollNode
Allows a new node to join an existing cluster with security features enabled.- Throws:
IOException
ElasticsearchException
- See Also:
-
getApiKey
public GetApiKeyResponse getApiKey(GetApiKeyRequest request) throws IOException, ElasticsearchException Retrieves information for one or more API keys. NOTE: If you have only themanage_own_api_key
privilege, this API returns only the API keys that you own. If you haveread_security
,manage_api_key
or greater privileges (includingmanage_security
), this API returns all API keys regardless of ownership.- Throws:
IOException
ElasticsearchException
- See Also:
-
getApiKey
public final GetApiKeyResponse getApiKey(Function<GetApiKeyRequest.Builder, ObjectBuilder<GetApiKeyRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information for one or more API keys. NOTE: If you have only themanage_own_api_key
privilege, this API returns only the API keys that you own. If you haveread_security
,manage_api_key
or greater privileges (includingmanage_security
), this API returns all API keys regardless of ownership.- Parameters:
fn
- a function that initializes a builder to create theGetApiKeyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getApiKey
Retrieves information for one or more API keys. NOTE: If you have only themanage_own_api_key
privilege, this API returns only the API keys that you own. If you haveread_security
,manage_api_key
or greater privileges (includingmanage_security
), this API returns all API keys regardless of ownership.- Throws:
IOException
ElasticsearchException
- See Also:
-
getBuiltinPrivileges
public GetBuiltinPrivilegesResponse getBuiltinPrivileges() throws IOException, ElasticsearchExceptionRetrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.- Throws:
IOException
ElasticsearchException
- See Also:
-
getPrivileges
public GetPrivilegesResponse getPrivileges(GetPrivilegesRequest request) throws IOException, ElasticsearchException Retrieves application privileges.- Throws:
IOException
ElasticsearchException
- See Also:
-
getPrivileges
public final GetPrivilegesResponse getPrivileges(Function<GetPrivilegesRequest.Builder, ObjectBuilder<GetPrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves application privileges.- Parameters:
fn
- a function that initializes a builder to create theGetPrivilegesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getPrivileges
Retrieves application privileges.- Throws:
IOException
ElasticsearchException
- See Also:
-
getRole
The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The get roles API cannot retrieve roles that are defined in roles files.- Throws:
IOException
ElasticsearchException
- See Also:
-
getRole
public final GetRoleResponse getRole(Function<GetRoleRequest.Builder, ObjectBuilder<GetRoleRequest>> fn) throws IOException, ElasticsearchExceptionThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The get roles API cannot retrieve roles that are defined in roles files.- Parameters:
fn
- a function that initializes a builder to create theGetRoleRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getRole
The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The get roles API cannot retrieve roles that are defined in roles files.- Throws:
IOException
ElasticsearchException
- See Also:
-
getRoleMapping
public GetRoleMappingResponse getRoleMapping(GetRoleMappingRequest request) throws IOException, ElasticsearchException Retrieves role mappings.- Throws:
IOException
ElasticsearchException
- See Also:
-
getRoleMapping
public final GetRoleMappingResponse getRoleMapping(Function<GetRoleMappingRequest.Builder, ObjectBuilder<GetRoleMappingRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves role mappings.- Parameters:
fn
- a function that initializes a builder to create theGetRoleMappingRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getRoleMapping
Retrieves role mappings.- Throws:
IOException
ElasticsearchException
- See Also:
-
getServiceAccounts
public GetServiceAccountsResponse getServiceAccounts(GetServiceAccountsRequest request) throws IOException, ElasticsearchException This API returns a list of service accounts that match the provided path parameter(s).- Throws:
IOException
ElasticsearchException
- See Also:
-
getServiceAccounts
public final GetServiceAccountsResponse getServiceAccounts(Function<GetServiceAccountsRequest.Builder, ObjectBuilder<GetServiceAccountsRequest>> fn) throws IOException, ElasticsearchExceptionThis API returns a list of service accounts that match the provided path parameter(s).- Parameters:
fn
- a function that initializes a builder to create theGetServiceAccountsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getServiceAccounts
This API returns a list of service accounts that match the provided path parameter(s).- Throws:
IOException
ElasticsearchException
- See Also:
-
getServiceCredentials
public GetServiceCredentialsResponse getServiceCredentials(GetServiceCredentialsRequest request) throws IOException, ElasticsearchException Retrieves information of all service credentials for a service account.- Throws:
IOException
ElasticsearchException
- See Also:
-
getServiceCredentials
public final GetServiceCredentialsResponse getServiceCredentials(Function<GetServiceCredentialsRequest.Builder, ObjectBuilder<GetServiceCredentialsRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information of all service credentials for a service account.- Parameters:
fn
- a function that initializes a builder to create theGetServiceCredentialsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getToken
public GetTokenResponse getToken(GetTokenRequest request) throws IOException, ElasticsearchException Creates a bearer token for access without requiring basic authentication.- Throws:
IOException
ElasticsearchException
- See Also:
-
getToken
public final GetTokenResponse getToken(Function<GetTokenRequest.Builder, ObjectBuilder<GetTokenRequest>> fn) throws IOException, ElasticsearchExceptionCreates a bearer token for access without requiring basic authentication.- Parameters:
fn
- a function that initializes a builder to create theGetTokenRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getToken
Creates a bearer token for access without requiring basic authentication.- Throws:
IOException
ElasticsearchException
- See Also:
-
getUser
Retrieves information about users in the native realm and built-in users.- Throws:
IOException
ElasticsearchException
- See Also:
-
getUser
public final GetUserResponse getUser(Function<GetUserRequest.Builder, ObjectBuilder<GetUserRequest>> fn) throws 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:
IOException
ElasticsearchException
- See Also:
-
getUser
Retrieves information about users in the native realm and built-in users.- Throws:
IOException
ElasticsearchException
- See Also:
-
getUserPrivileges
public GetUserPrivilegesResponse getUserPrivileges(GetUserPrivilegesRequest request) throws IOException, ElasticsearchException Retrieves security privileges for the logged in user.- Throws:
IOException
ElasticsearchException
- See Also:
-
getUserPrivileges
public final GetUserPrivilegesResponse getUserPrivileges(Function<GetUserPrivilegesRequest.Builder, ObjectBuilder<GetUserPrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves security privileges for the logged in user.- Parameters:
fn
- a function that initializes a builder to create theGetUserPrivilegesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getUserPrivileges
Retrieves security privileges for the logged in user.- Throws:
IOException
ElasticsearchException
- See Also:
-
getUserProfile
public GetUserProfileResponse getUserProfile(GetUserProfileRequest request) throws IOException, ElasticsearchException Retrieves a user's profile using the unique profile ID.- Throws:
IOException
ElasticsearchException
- See Also:
-
getUserProfile
public final GetUserProfileResponse getUserProfile(Function<GetUserProfileRequest.Builder, ObjectBuilder<GetUserProfileRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves a user's profile using the unique profile ID.- Parameters:
fn
- a function that initializes a builder to create theGetUserProfileRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
grantApiKey
public GrantApiKeyResponse grantApiKey(GrantApiKeyRequest request) throws IOException, ElasticsearchException Creates an API key on behalf of another user. This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. It is not possible to use this API to create an API key without that user’s credentials. The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. In this case, the API key will be created on behalf of the impersonated user.This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf.
A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. If applicable, it also returns expiration information for the API key in milliseconds.
By default, API keys never expire. You can specify expiration information when you create the API keys.
- Throws:
IOException
ElasticsearchException
- See Also:
-
grantApiKey
public final GrantApiKeyResponse grantApiKey(Function<GrantApiKeyRequest.Builder, ObjectBuilder<GrantApiKeyRequest>> fn) throws IOException, ElasticsearchExceptionCreates an API key on behalf of another user. This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. It is not possible to use this API to create an API key without that user’s credentials. The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. In this case, the API key will be created on behalf of the impersonated user.This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf.
A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. If applicable, it also returns expiration information for the API key in milliseconds.
By default, API keys never expire. You can specify expiration information when you create the API keys.
- Parameters:
fn
- a function that initializes a builder to create theGrantApiKeyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
hasPrivileges
public HasPrivilegesResponse hasPrivileges(HasPrivilegesRequest request) throws IOException, ElasticsearchException Determines whether the specified user has a specified list of privileges.- Throws:
IOException
ElasticsearchException
- See Also:
-
hasPrivileges
public final HasPrivilegesResponse hasPrivileges(Function<HasPrivilegesRequest.Builder, ObjectBuilder<HasPrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionDetermines whether the specified user has a specified list of privileges.- Parameters:
fn
- a function that initializes a builder to create theHasPrivilegesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
hasPrivileges
Determines whether the specified user has a specified list of privileges.- Throws:
IOException
ElasticsearchException
- See Also:
-
hasPrivilegesUserProfile
public HasPrivilegesUserProfileResponse hasPrivilegesUserProfile(HasPrivilegesUserProfileRequest request) throws IOException, ElasticsearchException Determines whether the users associated with the specified profile IDs have all the requested privileges.- Throws:
IOException
ElasticsearchException
- See Also:
-
hasPrivilegesUserProfile
public final HasPrivilegesUserProfileResponse hasPrivilegesUserProfile(Function<HasPrivilegesUserProfileRequest.Builder, ObjectBuilder<HasPrivilegesUserProfileRequest>> fn) throws IOException, ElasticsearchExceptionDetermines whether the users associated with the specified profile IDs have all the requested privileges.- Parameters:
fn
- a function that initializes a builder to create theHasPrivilegesUserProfileRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
invalidateApiKey
public InvalidateApiKeyResponse invalidateApiKey(InvalidateApiKeyRequest request) throws IOException, ElasticsearchException Invalidates one or more API keys. Themanage_api_key
privilege allows deleting any API keys. Themanage_own_api_key
only allows deleting API keys that are owned by the user. In addition, with themanage_own_api_key
privilege, an invalidation request must be issued in one of the three formats:- Set the parameter
owner=true
. - Or, set both
username
andrealm_name
to match the user’s identity. - Or, if the request is issued by an API key, i.e. an API key invalidates
itself, specify its ID in the
ids
field.
- Throws:
IOException
ElasticsearchException
- See Also:
- Set the parameter
-
invalidateApiKey
public final InvalidateApiKeyResponse invalidateApiKey(Function<InvalidateApiKeyRequest.Builder, ObjectBuilder<InvalidateApiKeyRequest>> fn) throws IOException, ElasticsearchExceptionInvalidates one or more API keys. Themanage_api_key
privilege allows deleting any API keys. Themanage_own_api_key
only allows deleting API keys that are owned by the user. In addition, with themanage_own_api_key
privilege, an invalidation request must be issued in one of the three formats:- Set the parameter
owner=true
. - Or, set both
username
andrealm_name
to match the user’s identity. - Or, if the request is issued by an API key, i.e. an API key invalidates
itself, specify its ID in the
ids
field.
- Parameters:
fn
- a function that initializes a builder to create theInvalidateApiKeyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
- Set the parameter
-
invalidateApiKey
Invalidates one or more API keys. Themanage_api_key
privilege allows deleting any API keys. Themanage_own_api_key
only allows deleting API keys that are owned by the user. In addition, with themanage_own_api_key
privilege, an invalidation request must be issued in one of the three formats:- Set the parameter
owner=true
. - Or, set both
username
andrealm_name
to match the user’s identity. - Or, if the request is issued by an API key, i.e. an API key invalidates
itself, specify its ID in the
ids
field.
- Throws:
IOException
ElasticsearchException
- See Also:
- Set the parameter
-
invalidateToken
public InvalidateTokenResponse invalidateToken(InvalidateTokenRequest request) throws IOException, ElasticsearchException Invalidates one or more access tokens or refresh tokens.- Throws:
IOException
ElasticsearchException
- See Also:
-
invalidateToken
public final InvalidateTokenResponse invalidateToken(Function<InvalidateTokenRequest.Builder, ObjectBuilder<InvalidateTokenRequest>> fn) throws IOException, ElasticsearchExceptionInvalidates one or more access tokens or refresh tokens.- Parameters:
fn
- a function that initializes a builder to create theInvalidateTokenRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
invalidateToken
Invalidates one or more access tokens or refresh tokens.- Throws:
IOException
ElasticsearchException
- See Also:
-
putPrivileges
public PutPrivilegesResponse putPrivileges(PutPrivilegesRequest request) throws IOException, ElasticsearchException Adds or updates application privileges.- Throws:
IOException
ElasticsearchException
- See Also:
-
putPrivileges
public final PutPrivilegesResponse putPrivileges(Function<PutPrivilegesRequest.Builder, ObjectBuilder<PutPrivilegesRequest>> fn) throws IOException, ElasticsearchExceptionAdds or updates application privileges.- Parameters:
fn
- a function that initializes a builder to create thePutPrivilegesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
putPrivileges
Adds or updates application privileges.- Throws:
IOException
ElasticsearchException
- See Also:
-
putRole
The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The create or update roles API cannot update roles that are defined in roles files.- Throws:
IOException
ElasticsearchException
- See Also:
-
putRole
public final PutRoleResponse putRole(Function<PutRoleRequest.Builder, ObjectBuilder<PutRoleRequest>> fn) throws IOException, ElasticsearchExceptionThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The create or update roles API cannot update roles that are defined in roles files.- Parameters:
fn
- a function that initializes a builder to create thePutRoleRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
putRoleMapping
public PutRoleMappingResponse putRoleMapping(PutRoleMappingRequest request) throws IOException, ElasticsearchException Creates and updates role mappings.- Throws:
IOException
ElasticsearchException
- See Also:
-
putRoleMapping
public final PutRoleMappingResponse putRoleMapping(Function<PutRoleMappingRequest.Builder, ObjectBuilder<PutRoleMappingRequest>> fn) throws IOException, ElasticsearchExceptionCreates and updates role mappings.- Parameters:
fn
- a function that initializes a builder to create thePutRoleMappingRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
putUser
Adds and updates users in the native realm. These users are commonly referred to as native users.- Throws:
IOException
ElasticsearchException
- See Also:
-
putUser
public final PutUserResponse putUser(Function<PutUserRequest.Builder, ObjectBuilder<PutUserRequest>> fn) throws 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:
IOException
ElasticsearchException
- See Also:
-
queryApiKeys
public QueryApiKeysResponse queryApiKeys(QueryApiKeysRequest request) throws IOException, ElasticsearchException Retrieves information for API keys in a paginated manner. You can optionally filter the results with a query.- Throws:
IOException
ElasticsearchException
- See Also:
-
queryApiKeys
public final QueryApiKeysResponse queryApiKeys(Function<QueryApiKeysRequest.Builder, ObjectBuilder<QueryApiKeysRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information for API keys in a paginated manner. You can optionally filter the results with a query.- Parameters:
fn
- a function that initializes a builder to create theQueryApiKeysRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
queryApiKeys
Retrieves information for API keys in a paginated manner. You can optionally filter the results with a query.- Throws:
IOException
ElasticsearchException
- See Also:
-
queryRole
public QueryRoleResponse queryRole(QueryRoleRequest request) throws IOException, ElasticsearchException Retrieves roles in a paginated manner. You can optionally filter the results with a query.- Throws:
IOException
ElasticsearchException
- See Also:
-
queryRole
public final QueryRoleResponse queryRole(Function<QueryRoleRequest.Builder, ObjectBuilder<QueryRoleRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves roles in a paginated manner. You can optionally filter the results with a query.- Parameters:
fn
- a function that initializes a builder to create theQueryRoleRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
queryRole
Retrieves roles in a paginated manner. You can optionally filter the results with a query.- Throws:
IOException
ElasticsearchException
- See Also:
-
queryUser
public QueryUserResponse queryUser(QueryUserRequest request) throws IOException, ElasticsearchException Retrieves information for Users in a paginated manner. You can optionally filter the results with a query.- Throws:
IOException
ElasticsearchException
- See Also:
-
queryUser
public final QueryUserResponse queryUser(Function<QueryUserRequest.Builder, ObjectBuilder<QueryUserRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information for Users in a paginated manner. You can optionally filter the results with a query.- Parameters:
fn
- a function that initializes a builder to create theQueryUserRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
queryUser
Retrieves information for Users in a paginated manner. You can optionally filter the results with a query.- Throws:
IOException
ElasticsearchException
- See Also:
-
samlAuthenticate
public SamlAuthenticateResponse samlAuthenticate(SamlAuthenticateRequest request) throws IOException, ElasticsearchException Submits a SAML Response message to Elasticsearch for consumption.- Throws:
IOException
ElasticsearchException
- See Also:
-
samlAuthenticate
public final SamlAuthenticateResponse samlAuthenticate(Function<SamlAuthenticateRequest.Builder, ObjectBuilder<SamlAuthenticateRequest>> fn) throws IOException, ElasticsearchExceptionSubmits a SAML Response message to Elasticsearch for consumption.- Parameters:
fn
- a function that initializes a builder to create theSamlAuthenticateRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
samlCompleteLogout
public BooleanResponse samlCompleteLogout(SamlCompleteLogoutRequest request) throws IOException, ElasticsearchException Verifies the logout response sent from the SAML IdP.- Throws:
IOException
ElasticsearchException
- See Also:
-
samlCompleteLogout
public final BooleanResponse samlCompleteLogout(Function<SamlCompleteLogoutRequest.Builder, ObjectBuilder<SamlCompleteLogoutRequest>> fn) throws IOException, ElasticsearchExceptionVerifies the logout response sent from the SAML IdP.- Parameters:
fn
- a function that initializes a builder to create theSamlCompleteLogoutRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
samlInvalidate
public SamlInvalidateResponse samlInvalidate(SamlInvalidateRequest request) throws IOException, ElasticsearchException Submits a SAML LogoutRequest message to Elasticsearch for consumption.- Throws:
IOException
ElasticsearchException
- See Also:
-
samlInvalidate
public final SamlInvalidateResponse samlInvalidate(Function<SamlInvalidateRequest.Builder, ObjectBuilder<SamlInvalidateRequest>> fn) throws IOException, ElasticsearchExceptionSubmits a SAML LogoutRequest message to Elasticsearch for consumption.- Parameters:
fn
- a function that initializes a builder to create theSamlInvalidateRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
samlLogout
public SamlLogoutResponse samlLogout(SamlLogoutRequest request) throws IOException, ElasticsearchException Submits a request to invalidate an access token and refresh token.- Throws:
IOException
ElasticsearchException
- See Also:
-
samlLogout
public final SamlLogoutResponse samlLogout(Function<SamlLogoutRequest.Builder, ObjectBuilder<SamlLogoutRequest>> fn) throws IOException, ElasticsearchExceptionSubmits a request to invalidate an access token and refresh token.- Parameters:
fn
- a function that initializes a builder to create theSamlLogoutRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
samlPrepareAuthentication
public SamlPrepareAuthenticationResponse samlPrepareAuthentication(SamlPrepareAuthenticationRequest request) throws IOException, ElasticsearchException Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch.- Throws:
IOException
ElasticsearchException
- See Also:
-
samlPrepareAuthentication
public final SamlPrepareAuthenticationResponse samlPrepareAuthentication(Function<SamlPrepareAuthenticationRequest.Builder, ObjectBuilder<SamlPrepareAuthenticationRequest>> fn) throws IOException, ElasticsearchExceptionCreates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch.- Parameters:
fn
- a function that initializes a builder to create theSamlPrepareAuthenticationRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
samlPrepareAuthentication
public SamlPrepareAuthenticationResponse samlPrepareAuthentication() throws IOException, ElasticsearchExceptionCreates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch.- Throws:
IOException
ElasticsearchException
- See Also:
-
samlServiceProviderMetadata
public SamlServiceProviderMetadataResponse samlServiceProviderMetadata(SamlServiceProviderMetadataRequest request) throws IOException, ElasticsearchException Generate SAML metadata for a SAML 2.0 Service Provider.- Throws:
IOException
ElasticsearchException
- See Also:
-
samlServiceProviderMetadata
public final SamlServiceProviderMetadataResponse samlServiceProviderMetadata(Function<SamlServiceProviderMetadataRequest.Builder, ObjectBuilder<SamlServiceProviderMetadataRequest>> fn) throws IOException, ElasticsearchExceptionGenerate SAML metadata for a SAML 2.0 Service Provider.- Parameters:
fn
- a function that initializes a builder to create theSamlServiceProviderMetadataRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
suggestUserProfiles
public SuggestUserProfilesResponse suggestUserProfiles(SuggestUserProfilesRequest request) throws IOException, ElasticsearchException Get suggestions for user profiles that match specified search criteria.- Throws:
IOException
ElasticsearchException
- See Also:
-
suggestUserProfiles
public final SuggestUserProfilesResponse suggestUserProfiles(Function<SuggestUserProfilesRequest.Builder, ObjectBuilder<SuggestUserProfilesRequest>> fn) throws IOException, ElasticsearchExceptionGet suggestions for user profiles that match specified search criteria.- Parameters:
fn
- a function that initializes a builder to create theSuggestUserProfilesRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
suggestUserProfiles
Get suggestions for user profiles that match specified search criteria.- Throws:
IOException
ElasticsearchException
- See Also:
-
updateApiKey
public UpdateApiKeyResponse updateApiKey(UpdateApiKeyRequest request) throws IOException, ElasticsearchException Updates attributes of an existing API key. Users can only update API keys that they created or that were granted to them. Use this API to update API keys created by the create API Key or grant API Key APIs. If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. This API supports updates to an API key’s access scope and metadata. The access scope of an API key is derived from therole_descriptors
you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. The snapshot of the owner’s permissions is updated automatically on every call. If you don’t specifyrole_descriptors
in the request, a call to this API might still change the API key’s access scope. This change can occur if the owner user’s permissions have changed since the API key was created or last modified. To update another user’s API key, use therun_as
feature to submit a request on behalf of another user. IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. To update an API key, the owner user’s credentials are required.- Throws:
IOException
ElasticsearchException
- See Also:
-
updateApiKey
public final UpdateApiKeyResponse updateApiKey(Function<UpdateApiKeyRequest.Builder, ObjectBuilder<UpdateApiKeyRequest>> fn) throws IOException, ElasticsearchExceptionUpdates attributes of an existing API key. Users can only update API keys that they created or that were granted to them. Use this API to update API keys created by the create API Key or grant API Key APIs. If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. This API supports updates to an API key’s access scope and metadata. The access scope of an API key is derived from therole_descriptors
you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. The snapshot of the owner’s permissions is updated automatically on every call. If you don’t specifyrole_descriptors
in the request, a call to this API might still change the API key’s access scope. This change can occur if the owner user’s permissions have changed since the API key was created or last modified. To update another user’s API key, use therun_as
feature to submit a request on behalf of another user. IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. To update an API key, the owner user’s credentials are required.- Parameters:
fn
- a function that initializes a builder to create theUpdateApiKeyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
updateUserProfileData
public UpdateUserProfileDataResponse updateUserProfileData(UpdateUserProfileDataRequest request) throws IOException, ElasticsearchException Updates specific data for the user profile that's associated with the specified unique ID.- Throws:
IOException
ElasticsearchException
- See Also:
-
updateUserProfileData
public final UpdateUserProfileDataResponse updateUserProfileData(Function<UpdateUserProfileDataRequest.Builder, ObjectBuilder<UpdateUserProfileDataRequest>> fn) throws IOException, ElasticsearchExceptionUpdates specific data for the user profile that's associated with the specified unique ID.- Parameters:
fn
- a function that initializes a builder to create theUpdateUserProfileDataRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-