Class OpenSearchSecurityAsyncClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchSecurityAsyncClient>
org.opensearch.client.opensearch.security.OpenSearchSecurityAsyncClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchSecurityAsyncClient
extends ApiClient<OpenSearchTransport,OpenSearchSecurityAsyncClient>
Client for the security namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchSecurityAsyncClient(OpenSearchTransport transport) OpenSearchSecurityAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionauthinfo()Returns or updates authentication information for the currently authenticated user.Returns or updates authentication information for the currently authenticated user.authinfo(AuthinfoRequest request) Returns or updates authentication information for the currently authenticated user.Returns the authorization token for the current user.Returns the authorization token for the current user.authtoken(AuthtokenRequest request) Returns the authorization token for the current user.Changes the password for the current user.changePassword(ChangePasswordRequest request) Changes the password for the current user.Checks whether or not an upgrade can be performed and which security resources can be updated.configUpgradeCheck(Function<ConfigUpgradeCheckRequest.Builder, ObjectBuilder<ConfigUpgradeCheckRequest>> fn) Checks whether or not an upgrade can be performed and which security resources can be updated.Checks whether or not an upgrade can be performed and which security resources can be updated.Assists the cluster operator with upgrading missing default values and stale default definitions.configUpgradePerform(Function<ConfigUpgradePerformRequest.Builder, ObjectBuilder<ConfigUpgradePerformRequest>> fn) Assists the cluster operator with upgrading missing default values and stale default definitions.Assists the cluster operator with upgrading missing default values and stale default definitions.createActionGroup(Function<CreateActionGroupRequest.Builder, ObjectBuilder<CreateActionGroupRequest>> fn) Creates or replaces the specified action group.Creates or replaces the specified action group.Creates or replaces APIs permitted for users on the allow list.Creates or replaces APIs permitted for users on the allow list.createAllowlist(CreateAllowlistRequest request) Creates or replaces APIs permitted for users on the allow list.Creates or replaces the specified role.createRole(CreateRoleRequest request) Creates or replaces the specified role.createRoleMapping(Function<CreateRoleMappingRequest.Builder, ObjectBuilder<CreateRoleMappingRequest>> fn) Creates or replaces the specified role mapping.Creates or replaces the specified role mapping.Creates or replaces the specified tenant.createTenant(CreateTenantRequest request) Creates or replaces the specified tenant.Creates or replaces the multi-tenancy configuration.createUpdateTenancyConfig(Function<CreateUpdateTenancyConfigRequest.Builder, ObjectBuilder<CreateUpdateTenancyConfigRequest>> fn) Creates or replaces the multi-tenancy configuration.Creates or replaces the multi-tenancy configuration.Creates or replaces the specified user.createUser(CreateUserRequest request) Creates or replaces the specified user.createUserLegacy(Function<CreateUserLegacyRequest.Builder, ObjectBuilder<CreateUserLegacyRequest>> fn) Creates or replaces the specified user.createUserLegacy(CreateUserLegacyRequest request) Creates or replaces the specified user.deleteActionGroup(Function<DeleteActionGroupRequest.Builder, ObjectBuilder<DeleteActionGroupRequest>> fn) Deletes the specified action group.Deletes the specified action group.deleteDistinguishedName(Function<DeleteDistinguishedNameRequest.Builder, ObjectBuilder<DeleteDistinguishedNameRequest>> fn) Deletes all distinguished names in the specified cluster or node allowlist.Deletes all distinguished names in the specified cluster or node allowlist.Deletes the specified role.deleteRole(DeleteRoleRequest request) Deletes the specified role.deleteRoleMapping(Function<DeleteRoleMappingRequest.Builder, ObjectBuilder<DeleteRoleMappingRequest>> fn) Deletes the specified role mapping.Deletes the specified role mapping.Deletes the specified tenant.deleteTenant(DeleteTenantRequest request) Deletes the specified tenant.Deletes the specified internal user.deleteUser(DeleteUserRequest request) Deletes the specified internal user.deleteUserLegacy(Function<DeleteUserLegacyRequest.Builder, ObjectBuilder<DeleteUserLegacyRequest>> fn) Delete the specified user.deleteUserLegacy(DeleteUserLegacyRequest request) Delete the specified user.Flushes the Security plugin's user, authentication, and authorization cache.Flushes the Security plugin's user, authentication, and authorization cache.flushCache(FlushCacheRequest request) Flushes the Security plugin's user, authentication, and authorization cache.generateOboToken(Function<GenerateOboTokenRequest.Builder, ObjectBuilder<GenerateOboTokenRequest>> fn) Generates aOn-Behalf-Oftoken for the current user.generateOboToken(GenerateOboTokenRequest request) Generates aOn-Behalf-Oftoken for the current user.generateUserToken(Function<GenerateUserTokenRequest.Builder, ObjectBuilder<GenerateUserTokenRequest>> fn) Generates an authorization token for the specified user.Generates an authorization token for the specified user.final CompletableFuture<BooleanResponse> generateUserTokenLegacy(Function<GenerateUserTokenLegacyRequest.Builder, ObjectBuilder<GenerateUserTokenLegacyRequest>> fn) Generates authorization token for the given user.Generates authorization token for the given user.Returns account information for the current user.getAccountDetails(Function<GetAccountDetailsRequest.Builder, ObjectBuilder<GetAccountDetailsRequest>> fn) Returns account information for the current user.Returns account information for the current user.Retrieves one action group.getActionGroup(GetActionGroupRequest request) Retrieves one action group.Retrieves all action groups.Retrieves all action groups.getActionGroups(GetActionGroupsRequest request) Retrieves all action groups.Retrieves the cluster security certificates.getAllCertificates(Function<GetAllCertificatesRequest.Builder, ObjectBuilder<GetAllCertificatesRequest>> fn) Retrieves the cluster security certificates.Retrieves the cluster security certificates.Retrieves the current list of allowed APIs accessible to a normal user.Retrieves the current list of allowed APIs accessible to a normal user.getAllowlist(GetAllowlistRequest request) Retrieves the current list of allowed APIs accessible to a normal user.Retrieves the audit configuration.getAuditConfiguration(Function<GetAuditConfigurationRequest.Builder, ObjectBuilder<GetAuditConfigurationRequest>> fn) Retrieves the audit configuration.Retrieves the audit configuration.Retrieves the cluster security certificates.Retrieves the cluster security certificates.getCertificates(GetCertificatesRequest request) Retrieves the cluster security certificates.Returns the current Security plugin configuration in a JSON format.getConfiguration(Function<GetConfigurationRequest.Builder, ObjectBuilder<GetConfigurationRequest>> fn) Returns the current Security plugin configuration in a JSON format.getConfiguration(GetConfigurationRequest request) Returns the current Security plugin configuration in a JSON format.Retrieves the current values for dynamic security settings for OpenSearch Dashboards.getDashboardsInfo(Function<GetDashboardsInfoRequest.Builder, ObjectBuilder<GetDashboardsInfoRequest>> fn) Retrieves the current values for dynamic security settings for OpenSearch Dashboards.Retrieves the current values for dynamic security settings for OpenSearch Dashboards.getDistinguishedName(Function<GetDistinguishedNameRequest.Builder, ObjectBuilder<GetDistinguishedNameRequest>> fn) Retrieves all node distinguished names.Retrieves all node distinguished names.Retrieves all node distinguished names.getDistinguishedNames(Function<GetDistinguishedNamesRequest.Builder, ObjectBuilder<GetDistinguishedNamesRequest>> fn) Retrieves all node distinguished names.Retrieves all node distinguished names.getNodeCertificates(Function<GetNodeCertificatesRequest.Builder, ObjectBuilder<GetNodeCertificatesRequest>> fn) Retrieves the specified node's security certificates.Retrieves the specified node's security certificates.Retrieves the evaluated REST API permissions for the currently logged in user.getPermissionsInfo(Function<GetPermissionsInfoRequest.Builder, ObjectBuilder<GetPermissionsInfoRequest>> fn) Retrieves the evaluated REST API permissions for the currently logged in user.Retrieves the evaluated REST API permissions for the currently logged in user.final CompletableFuture<GetRoleResponse> Retrieves one role.getRole(GetRoleRequest request) Retrieves one role.Retrieves the specified role mapping.getRoleMapping(GetRoleMappingRequest request) Retrieves the specified role mapping.Retrieves all role mappings.Retrieves all role mappings.getRoleMappings(GetRoleMappingsRequest request) Retrieves all role mappings.getRoles()Retrieves all roles.Retrieves all roles.getRoles(GetRolesRequest request) Retrieves all roles.Retrieves information about the SSL configuration.Retrieves information about the SSL configuration.getSslinfo(GetSslinfoRequest request) Retrieves information about the SSL configuration.Retrieves the multi-tenancy configuration.getTenancyConfig(Function<GetTenancyConfigRequest.Builder, ObjectBuilder<GetTenancyConfigRequest>> fn) Retrieves the multi-tenancy configuration.getTenancyConfig(GetTenancyConfigRequest request) Retrieves the multi-tenancy configuration.Retrieves the specified tenant.getTenant(GetTenantRequest request) Retrieves the specified tenant.Retrieves all tenants.Retrieves all tenants.getTenants(GetTenantsRequest request) Retrieves all tenants.final CompletableFuture<GetUserResponse> Retrieve information about the specified internal user.getUser(GetUserRequest request) Retrieve information about the specified internal user.Retrieve one user.getUserLegacy(GetUserLegacyRequest request) Retrieve one user.getUsers()Retrieve all internal users.Retrieve all internal users.getUsers(GetUsersRequest request) Retrieve all internal users.Retrieve all internal users.Retrieve all internal users.getUsersLegacy(GetUsersLegacyRequest request) Retrieve all internal users.final CompletableFuture<HealthResponse> health()Checks to see if the Security plugin is running.final CompletableFuture<HealthResponse> Checks to see if the Security plugin is running.health(HealthRequest request) Checks to see if the Security plugin is running.final CompletableFuture<MigrateResponse> migrate()Migrates the security configuration from v6 to v7.final CompletableFuture<MigrateResponse> Migrates the security configuration from v6 to v7.migrate(MigrateRequest request) Migrates the security configuration from v6 to v7.patchActionGroup(Function<PatchActionGroupRequest.Builder, ObjectBuilder<PatchActionGroupRequest>> fn) Updates the individual attributes of an action group.patchActionGroup(PatchActionGroupRequest request) Updates the individual attributes of an action group.patchActionGroups(Function<PatchActionGroupsRequest.Builder, ObjectBuilder<PatchActionGroupsRequest>> fn) Creates, updates, or deletes multiple action groups in a single request.Creates, updates, or deletes multiple action groups in a single request.Updates the current list of APIs accessible for users on the allow list.patchAllowlist(PatchAllowlistRequest request) Updates the current list of APIs accessible for users on the allow list.patchAuditConfiguration(Function<PatchAuditConfigurationRequest.Builder, ObjectBuilder<PatchAuditConfigurationRequest>> fn) Updates the specified fields in the audit configuration.Updates the specified fields in the audit configuration.patchConfiguration(Function<PatchConfigurationRequest.Builder, ObjectBuilder<PatchConfigurationRequest>> fn) Updates the existing security configuration using the REST API.Updates the existing security configuration using the REST API.patchDistinguishedName(Function<PatchDistinguishedNameRequest.Builder, ObjectBuilder<PatchDistinguishedNameRequest>> fn) Updates the distinguished cluster name for the specified cluster.Updates the distinguished cluster name for the specified cluster.patchDistinguishedNames(Function<PatchDistinguishedNamesRequest.Builder, ObjectBuilder<PatchDistinguishedNamesRequest>> fn) Bulk updates specified node distinguished names.Bulk updates specified node distinguished names.Updates the individual attributes of a role.patchRole(PatchRoleRequest request) Updates the individual attributes of a role.patchRoleMapping(Function<PatchRoleMappingRequest.Builder, ObjectBuilder<PatchRoleMappingRequest>> fn) Updates the individual attributes of a role mapping.patchRoleMapping(PatchRoleMappingRequest request) Updates the individual attributes of a role mapping.patchRoleMappings(Function<PatchRoleMappingsRequest.Builder, ObjectBuilder<PatchRoleMappingsRequest>> fn) Creates or updates multiple role mappings in a single request.Creates or updates multiple role mappings in a single request.Creates, updates, or deletes multiple roles in a single call.patchRoles(PatchRolesRequest request) Creates, updates, or deletes multiple roles in a single call.Adds, deletes, or modifies a single tenant.patchTenant(PatchTenantRequest request) Adds, deletes, or modifies a single tenant.Adds, deletes, or modifies multiple tenants in a single request.patchTenants(PatchTenantsRequest request) Adds, deletes, or modifies multiple tenants in a single request.Updates individual attributes for an internal user.patchUser(PatchUserRequest request) Updates individual attributes for an internal user.Creates, updates, or deletes multiple internal users in a single request.patchUsers(PatchUsersRequest request) Creates, updates, or deletes multiple internal users in a single request.Retrieves the current values for dynamic security settings for OpenSearch Dashboards.postDashboardsInfo(Function<PostDashboardsInfoRequest.Builder, ObjectBuilder<PostDashboardsInfoRequest>> fn) Retrieves the current values for dynamic security settings for OpenSearch Dashboards.Retrieves the current values for dynamic security settings for OpenSearch Dashboards.Reloads the HTTP communication certificates.reloadHttpCertificates(Function<ReloadHttpCertificatesRequest.Builder, ObjectBuilder<ReloadHttpCertificatesRequest>> fn) Reloads the HTTP communication certificates.Reloads the HTTP communication certificates.Reloads the transport communication certificates.reloadTransportCertificates(Function<ReloadTransportCertificatesRequest.Builder, ObjectBuilder<ReloadTransportCertificatesRequest>> fn) Reloads the transport communication certificates.Reloads the transport communication certificates.Retrieves the names of current tenants.Retrieves the names of current tenants.tenantInfo(TenantInfoRequest request) Retrieves the names of current tenants.Updates the audit configuration.updateAuditConfiguration(Function<UpdateAuditConfigurationRequest.Builder, ObjectBuilder<UpdateAuditConfigurationRequest>> fn) Updates the audit configuration.Updates the audit configuration.Updates the settings for an existing security configuration.updateConfiguration(Function<UpdateConfigurationRequest.Builder, ObjectBuilder<UpdateConfigurationRequest>> fn) Updates the settings for an existing security configuration.Updates the settings for an existing security configuration.updateDistinguishedName(Function<UpdateDistinguishedNameRequest.Builder, ObjectBuilder<UpdateDistinguishedNameRequest>> fn) Adds or updates the specified distinguished names in the cluster or node allowlist.Adds or updates the specified distinguished names in the cluster or node allowlist.validate()Checks whether the v6 security configuration is valid and ready to be migrated to v7.Checks whether the v6 security configuration is valid and ready to be migrated to v7.validate(ValidateRequest request) Checks whether the v6 security configuration is valid and ready to be migrated to v7.final CompletableFuture<WhoAmIResponse> whoAmI()Gets the identity information for the user currently logged in.final CompletableFuture<WhoAmIResponse> Gets the identity information for the user currently logged in.whoAmI(WhoAmIRequest request) Gets the identity information for the user currently logged in.Gets the identity information for the user currently logged in.Gets the identity information for the user currently logged in.whoAmIProtected(WhoAmIProtectedRequest request) Gets the identity information for the user currently logged in.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchSecurityAsyncClient
-
OpenSearchSecurityAsyncClient
public OpenSearchSecurityAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public OpenSearchSecurityAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchSecurityAsyncClient>
-
authinfo
public CompletableFuture<AuthinfoResponse> authinfo(AuthinfoRequest request) throws IOException, OpenSearchException Returns or updates authentication information for the currently authenticated user.- Throws:
IOExceptionOpenSearchException
-
authinfo
public final CompletableFuture<AuthinfoResponse> authinfo(Function<AuthinfoRequest.Builder, ObjectBuilder<AuthinfoRequest>> fn) throws IOException, OpenSearchExceptionReturns or updates authentication information for the currently authenticated user.- Parameters:
fn- a function that initializes a builder to create theAuthinfoRequest- Throws:
IOExceptionOpenSearchException
-
authinfo
Returns or updates authentication information for the currently authenticated user.- Throws:
IOExceptionOpenSearchException
-
authtoken
public CompletableFuture<AuthtokenResponse> authtoken(AuthtokenRequest request) throws IOException, OpenSearchException Returns the authorization token for the current user.- Throws:
IOExceptionOpenSearchException
-
authtoken
public final CompletableFuture<AuthtokenResponse> authtoken(Function<AuthtokenRequest.Builder, ObjectBuilder<AuthtokenRequest>> fn) throws IOException, OpenSearchExceptionReturns the authorization token for the current user.- Parameters:
fn- a function that initializes a builder to create theAuthtokenRequest- Throws:
IOExceptionOpenSearchException
-
authtoken
public final CompletableFuture<AuthtokenResponse> authtoken() throws IOException, OpenSearchExceptionReturns the authorization token for the current user.- Throws:
IOExceptionOpenSearchException
-
changePassword
public CompletableFuture<ChangePasswordResponse> changePassword(ChangePasswordRequest request) throws IOException, OpenSearchException Changes the password for the current user.- Throws:
IOExceptionOpenSearchException
-
changePassword
public final CompletableFuture<ChangePasswordResponse> changePassword(Function<ChangePasswordRequest.Builder, ObjectBuilder<ChangePasswordRequest>> fn) throws IOException, OpenSearchExceptionChanges the password for the current user.- Parameters:
fn- a function that initializes a builder to create theChangePasswordRequest- Throws:
IOExceptionOpenSearchException
-
configUpgradeCheck
public CompletableFuture<ConfigUpgradeCheckResponse> configUpgradeCheck(ConfigUpgradeCheckRequest request) throws IOException, OpenSearchException Checks whether or not an upgrade can be performed and which security resources can be updated.- Throws:
IOExceptionOpenSearchException
-
configUpgradeCheck
public final CompletableFuture<ConfigUpgradeCheckResponse> configUpgradeCheck(Function<ConfigUpgradeCheckRequest.Builder, ObjectBuilder<ConfigUpgradeCheckRequest>> fn) throws IOException, OpenSearchExceptionChecks whether or not an upgrade can be performed and which security resources can be updated.- Parameters:
fn- a function that initializes a builder to create theConfigUpgradeCheckRequest- Throws:
IOExceptionOpenSearchException
-
configUpgradeCheck
public final CompletableFuture<ConfigUpgradeCheckResponse> configUpgradeCheck() throws IOException, OpenSearchExceptionChecks whether or not an upgrade can be performed and which security resources can be updated.- Throws:
IOExceptionOpenSearchException
-
configUpgradePerform
public CompletableFuture<ConfigUpgradePerformResponse> configUpgradePerform(ConfigUpgradePerformRequest request) throws IOException, OpenSearchException Assists the cluster operator with upgrading missing default values and stale default definitions.- Throws:
IOExceptionOpenSearchException
-
configUpgradePerform
public final CompletableFuture<ConfigUpgradePerformResponse> configUpgradePerform(Function<ConfigUpgradePerformRequest.Builder, ObjectBuilder<ConfigUpgradePerformRequest>> fn) throws IOException, OpenSearchExceptionAssists the cluster operator with upgrading missing default values and stale default definitions.- Parameters:
fn- a function that initializes a builder to create theConfigUpgradePerformRequest- Throws:
IOExceptionOpenSearchException
-
configUpgradePerform
public final CompletableFuture<ConfigUpgradePerformResponse> configUpgradePerform() throws IOException, OpenSearchExceptionAssists the cluster operator with upgrading missing default values and stale default definitions.- Throws:
IOExceptionOpenSearchException
-
createActionGroup
public CompletableFuture<CreateActionGroupResponse> createActionGroup(CreateActionGroupRequest request) throws IOException, OpenSearchException Creates or replaces the specified action group.- Throws:
IOExceptionOpenSearchException
-
createActionGroup
public final CompletableFuture<CreateActionGroupResponse> createActionGroup(Function<CreateActionGroupRequest.Builder, ObjectBuilder<CreateActionGroupRequest>> fn) throws IOException, OpenSearchExceptionCreates or replaces the specified action group.- Parameters:
fn- a function that initializes a builder to create theCreateActionGroupRequest- Throws:
IOExceptionOpenSearchException
-
createAllowlist
public CompletableFuture<CreateAllowlistResponse> createAllowlist(CreateAllowlistRequest request) throws IOException, OpenSearchException Creates or replaces APIs permitted for users on the allow list. Requires a super admin certificate or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
createAllowlist
public final CompletableFuture<CreateAllowlistResponse> createAllowlist(Function<CreateAllowlistRequest.Builder, ObjectBuilder<CreateAllowlistRequest>> fn) throws IOException, OpenSearchExceptionCreates or replaces APIs permitted for users on the allow list. Requires a super admin certificate or REST API permissions.- Parameters:
fn- a function that initializes a builder to create theCreateAllowlistRequest- Throws:
IOExceptionOpenSearchException
-
createAllowlist
public final CompletableFuture<CreateAllowlistResponse> createAllowlist() throws IOException, OpenSearchExceptionCreates or replaces APIs permitted for users on the allow list. Requires a super admin certificate or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
createRole
public CompletableFuture<CreateRoleResponse> createRole(CreateRoleRequest request) throws IOException, OpenSearchException Creates or replaces the specified role.- Throws:
IOExceptionOpenSearchException
-
createRole
public final CompletableFuture<CreateRoleResponse> createRole(Function<CreateRoleRequest.Builder, ObjectBuilder<CreateRoleRequest>> fn) throws IOException, OpenSearchExceptionCreates or replaces the specified role.- Parameters:
fn- a function that initializes a builder to create theCreateRoleRequest- Throws:
IOExceptionOpenSearchException
-
createRoleMapping
public CompletableFuture<CreateRoleMappingResponse> createRoleMapping(CreateRoleMappingRequest request) throws IOException, OpenSearchException Creates or replaces the specified role mapping.- Throws:
IOExceptionOpenSearchException
-
createRoleMapping
public final CompletableFuture<CreateRoleMappingResponse> createRoleMapping(Function<CreateRoleMappingRequest.Builder, ObjectBuilder<CreateRoleMappingRequest>> fn) throws IOException, OpenSearchExceptionCreates or replaces the specified role mapping.- Parameters:
fn- a function that initializes a builder to create theCreateRoleMappingRequest- Throws:
IOExceptionOpenSearchException
-
createTenant
public CompletableFuture<CreateTenantResponse> createTenant(CreateTenantRequest request) throws IOException, OpenSearchException Creates or replaces the specified tenant.- Throws:
IOExceptionOpenSearchException
-
createTenant
public final CompletableFuture<CreateTenantResponse> createTenant(Function<CreateTenantRequest.Builder, ObjectBuilder<CreateTenantRequest>> fn) throws IOException, OpenSearchExceptionCreates or replaces the specified tenant.- Parameters:
fn- a function that initializes a builder to create theCreateTenantRequest- Throws:
IOExceptionOpenSearchException
-
createUpdateTenancyConfig
public CompletableFuture<CreateUpdateTenancyConfigResponse> createUpdateTenancyConfig(CreateUpdateTenancyConfigRequest request) throws IOException, OpenSearchException Creates or replaces the multi-tenancy configuration. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
createUpdateTenancyConfig
public final CompletableFuture<CreateUpdateTenancyConfigResponse> createUpdateTenancyConfig(Function<CreateUpdateTenancyConfigRequest.Builder, ObjectBuilder<CreateUpdateTenancyConfigRequest>> fn) throws IOException, OpenSearchExceptionCreates or replaces the multi-tenancy configuration. Requires super admin or REST API permissions.- Parameters:
fn- a function that initializes a builder to create theCreateUpdateTenancyConfigRequest- Throws:
IOExceptionOpenSearchException
-
createUpdateTenancyConfig
public final CompletableFuture<CreateUpdateTenancyConfigResponse> createUpdateTenancyConfig() throws IOException, OpenSearchExceptionCreates or replaces the multi-tenancy configuration. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
createUser
public CompletableFuture<CreateUserResponse> createUser(CreateUserRequest request) throws IOException, OpenSearchException Creates or replaces the specified user.- Throws:
IOExceptionOpenSearchException
-
createUser
public final CompletableFuture<CreateUserResponse> createUser(Function<CreateUserRequest.Builder, ObjectBuilder<CreateUserRequest>> fn) throws IOException, OpenSearchExceptionCreates or replaces the specified user.- Parameters:
fn- a function that initializes a builder to create theCreateUserRequest- Throws:
IOExceptionOpenSearchException
-
createUserLegacy
public CompletableFuture<CreateUserLegacyResponse> createUserLegacy(CreateUserLegacyRequest request) throws IOException, OpenSearchException Creates or replaces the specified user. Legacy API.- Throws:
IOExceptionOpenSearchException
-
createUserLegacy
public final CompletableFuture<CreateUserLegacyResponse> createUserLegacy(Function<CreateUserLegacyRequest.Builder, ObjectBuilder<CreateUserLegacyRequest>> fn) throws IOException, OpenSearchExceptionCreates or replaces the specified user. Legacy API.- Parameters:
fn- a function that initializes a builder to create theCreateUserLegacyRequest- Throws:
IOExceptionOpenSearchException
-
deleteActionGroup
public CompletableFuture<DeleteActionGroupResponse> deleteActionGroup(DeleteActionGroupRequest request) throws IOException, OpenSearchException Deletes the specified action group.- Throws:
IOExceptionOpenSearchException
-
deleteActionGroup
public final CompletableFuture<DeleteActionGroupResponse> deleteActionGroup(Function<DeleteActionGroupRequest.Builder, ObjectBuilder<DeleteActionGroupRequest>> fn) throws IOException, OpenSearchExceptionDeletes the specified action group.- Parameters:
fn- a function that initializes a builder to create theDeleteActionGroupRequest- Throws:
IOExceptionOpenSearchException
-
deleteDistinguishedName
public CompletableFuture<DeleteDistinguishedNameResponse> deleteDistinguishedName(DeleteDistinguishedNameRequest request) throws IOException, OpenSearchException Deletes all distinguished names in the specified cluster or node allowlist. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
deleteDistinguishedName
public final CompletableFuture<DeleteDistinguishedNameResponse> deleteDistinguishedName(Function<DeleteDistinguishedNameRequest.Builder, ObjectBuilder<DeleteDistinguishedNameRequest>> fn) throws IOException, OpenSearchExceptionDeletes all distinguished names in the specified cluster or node allowlist. Requires super admin or REST API permissions.- Parameters:
fn- a function that initializes a builder to create theDeleteDistinguishedNameRequest- Throws:
IOExceptionOpenSearchException
-
deleteRole
public CompletableFuture<DeleteRoleResponse> deleteRole(DeleteRoleRequest request) throws IOException, OpenSearchException Deletes the specified role.- Throws:
IOExceptionOpenSearchException
-
deleteRole
public final CompletableFuture<DeleteRoleResponse> deleteRole(Function<DeleteRoleRequest.Builder, ObjectBuilder<DeleteRoleRequest>> fn) throws IOException, OpenSearchExceptionDeletes the specified role.- Parameters:
fn- a function that initializes a builder to create theDeleteRoleRequest- Throws:
IOExceptionOpenSearchException
-
deleteRoleMapping
public CompletableFuture<DeleteRoleMappingResponse> deleteRoleMapping(DeleteRoleMappingRequest request) throws IOException, OpenSearchException Deletes the specified role mapping.- Throws:
IOExceptionOpenSearchException
-
deleteRoleMapping
public final CompletableFuture<DeleteRoleMappingResponse> deleteRoleMapping(Function<DeleteRoleMappingRequest.Builder, ObjectBuilder<DeleteRoleMappingRequest>> fn) throws IOException, OpenSearchExceptionDeletes the specified role mapping.- Parameters:
fn- a function that initializes a builder to create theDeleteRoleMappingRequest- Throws:
IOExceptionOpenSearchException
-
deleteTenant
public CompletableFuture<DeleteTenantResponse> deleteTenant(DeleteTenantRequest request) throws IOException, OpenSearchException Deletes the specified tenant.- Throws:
IOExceptionOpenSearchException
-
deleteTenant
public final CompletableFuture<DeleteTenantResponse> deleteTenant(Function<DeleteTenantRequest.Builder, ObjectBuilder<DeleteTenantRequest>> fn) throws IOException, OpenSearchExceptionDeletes the specified tenant.- Parameters:
fn- a function that initializes a builder to create theDeleteTenantRequest- Throws:
IOExceptionOpenSearchException
-
deleteUser
public CompletableFuture<DeleteUserResponse> deleteUser(DeleteUserRequest request) throws IOException, OpenSearchException Deletes the specified internal user.- Throws:
IOExceptionOpenSearchException
-
deleteUser
public final CompletableFuture<DeleteUserResponse> deleteUser(Function<DeleteUserRequest.Builder, ObjectBuilder<DeleteUserRequest>> fn) throws IOException, OpenSearchExceptionDeletes the specified internal user.- Parameters:
fn- a function that initializes a builder to create theDeleteUserRequest- Throws:
IOExceptionOpenSearchException
-
deleteUserLegacy
public CompletableFuture<DeleteUserLegacyResponse> deleteUserLegacy(DeleteUserLegacyRequest request) throws IOException, OpenSearchException Delete the specified user. Legacy API.- Throws:
IOExceptionOpenSearchException
-
deleteUserLegacy
public final CompletableFuture<DeleteUserLegacyResponse> deleteUserLegacy(Function<DeleteUserLegacyRequest.Builder, ObjectBuilder<DeleteUserLegacyRequest>> fn) throws IOException, OpenSearchExceptionDelete the specified user. Legacy API.- Parameters:
fn- a function that initializes a builder to create theDeleteUserLegacyRequest- Throws:
IOExceptionOpenSearchException
-
flushCache
public CompletableFuture<FlushCacheResponse> flushCache(FlushCacheRequest request) throws IOException, OpenSearchException Flushes the Security plugin's user, authentication, and authorization cache.- Throws:
IOExceptionOpenSearchException
-
flushCache
public final CompletableFuture<FlushCacheResponse> flushCache(Function<FlushCacheRequest.Builder, ObjectBuilder<FlushCacheRequest>> fn) throws IOException, OpenSearchExceptionFlushes the Security plugin's user, authentication, and authorization cache.- Parameters:
fn- a function that initializes a builder to create theFlushCacheRequest- Throws:
IOExceptionOpenSearchException
-
flushCache
public final CompletableFuture<FlushCacheResponse> flushCache() throws IOException, OpenSearchExceptionFlushes the Security plugin's user, authentication, and authorization cache.- Throws:
IOExceptionOpenSearchException
-
generateOboToken
public CompletableFuture<GenerateOboTokenResponse> generateOboToken(GenerateOboTokenRequest request) throws IOException, OpenSearchException Generates aOn-Behalf-Oftoken for the current user.- Throws:
IOExceptionOpenSearchException
-
generateOboToken
public final CompletableFuture<GenerateOboTokenResponse> generateOboToken(Function<GenerateOboTokenRequest.Builder, ObjectBuilder<GenerateOboTokenRequest>> fn) throws IOException, OpenSearchExceptionGenerates aOn-Behalf-Oftoken for the current user.- Parameters:
fn- a function that initializes a builder to create theGenerateOboTokenRequest- Throws:
IOExceptionOpenSearchException
-
generateUserToken
public CompletableFuture<GenerateUserTokenResponse> generateUserToken(GenerateUserTokenRequest request) throws IOException, OpenSearchException Generates an authorization token for the specified user.- Throws:
IOExceptionOpenSearchException
-
generateUserToken
public final CompletableFuture<GenerateUserTokenResponse> generateUserToken(Function<GenerateUserTokenRequest.Builder, ObjectBuilder<GenerateUserTokenRequest>> fn) throws IOException, OpenSearchExceptionGenerates an authorization token for the specified user.- Parameters:
fn- a function that initializes a builder to create theGenerateUserTokenRequest- Throws:
IOExceptionOpenSearchException
-
generateUserTokenLegacy
public CompletableFuture<BooleanResponse> generateUserTokenLegacy(GenerateUserTokenLegacyRequest request) throws IOException, OpenSearchException Generates authorization token for the given user. Legacy API. Not Implemented.- Throws:
IOExceptionOpenSearchException
-
generateUserTokenLegacy
public final CompletableFuture<BooleanResponse> generateUserTokenLegacy(Function<GenerateUserTokenLegacyRequest.Builder, ObjectBuilder<GenerateUserTokenLegacyRequest>> fn) throws IOException, OpenSearchExceptionGenerates authorization token for the given user. Legacy API. Not Implemented.- Parameters:
fn- a function that initializes a builder to create theGenerateUserTokenLegacyRequest- Throws:
IOExceptionOpenSearchException
-
getAccountDetails
public CompletableFuture<GetAccountDetailsResponse> getAccountDetails(GetAccountDetailsRequest request) throws IOException, OpenSearchException Returns account information for the current user.- Throws:
IOExceptionOpenSearchException
-
getAccountDetails
public final CompletableFuture<GetAccountDetailsResponse> getAccountDetails(Function<GetAccountDetailsRequest.Builder, ObjectBuilder<GetAccountDetailsRequest>> fn) throws IOException, OpenSearchExceptionReturns account information for the current user.- Parameters:
fn- a function that initializes a builder to create theGetAccountDetailsRequest- Throws:
IOExceptionOpenSearchException
-
getAccountDetails
public final CompletableFuture<GetAccountDetailsResponse> getAccountDetails() throws IOException, OpenSearchExceptionReturns account information for the current user.- Throws:
IOExceptionOpenSearchException
-
getActionGroup
public CompletableFuture<GetActionGroupResponse> getActionGroup(GetActionGroupRequest request) throws IOException, OpenSearchException Retrieves one action group.- Throws:
IOExceptionOpenSearchException
-
getActionGroup
public final CompletableFuture<GetActionGroupResponse> getActionGroup(Function<GetActionGroupRequest.Builder, ObjectBuilder<GetActionGroupRequest>> fn) throws IOException, OpenSearchExceptionRetrieves one action group.- Parameters:
fn- a function that initializes a builder to create theGetActionGroupRequest- Throws:
IOExceptionOpenSearchException
-
getActionGroups
public CompletableFuture<GetActionGroupsResponse> getActionGroups(GetActionGroupsRequest request) throws IOException, OpenSearchException Retrieves all action groups.- Throws:
IOExceptionOpenSearchException
-
getActionGroups
public final CompletableFuture<GetActionGroupsResponse> getActionGroups(Function<GetActionGroupsRequest.Builder, ObjectBuilder<GetActionGroupsRequest>> fn) throws IOException, OpenSearchExceptionRetrieves all action groups.- Parameters:
fn- a function that initializes a builder to create theGetActionGroupsRequest- Throws:
IOExceptionOpenSearchException
-
getActionGroups
public final CompletableFuture<GetActionGroupsResponse> getActionGroups() throws IOException, OpenSearchExceptionRetrieves all action groups.- Throws:
IOExceptionOpenSearchException
-
getAllCertificates
public CompletableFuture<GetAllCertificatesResponse> getAllCertificates(GetAllCertificatesRequest request) throws IOException, OpenSearchException Retrieves the cluster security certificates.- Throws:
IOExceptionOpenSearchException
-
getAllCertificates
public final CompletableFuture<GetAllCertificatesResponse> getAllCertificates(Function<GetAllCertificatesRequest.Builder, ObjectBuilder<GetAllCertificatesRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the cluster security certificates.- Parameters:
fn- a function that initializes a builder to create theGetAllCertificatesRequest- Throws:
IOExceptionOpenSearchException
-
getAllCertificates
public final CompletableFuture<GetAllCertificatesResponse> getAllCertificates() throws IOException, OpenSearchExceptionRetrieves the cluster security certificates.- Throws:
IOExceptionOpenSearchException
-
getAllowlist
public CompletableFuture<GetAllowlistResponse> getAllowlist(GetAllowlistRequest request) throws IOException, OpenSearchException Retrieves the current list of allowed APIs accessible to a normal user.- Throws:
IOExceptionOpenSearchException
-
getAllowlist
public final CompletableFuture<GetAllowlistResponse> getAllowlist(Function<GetAllowlistRequest.Builder, ObjectBuilder<GetAllowlistRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the current list of allowed APIs accessible to a normal user.- Parameters:
fn- a function that initializes a builder to create theGetAllowlistRequest- Throws:
IOExceptionOpenSearchException
-
getAllowlist
public final CompletableFuture<GetAllowlistResponse> getAllowlist() throws IOException, OpenSearchExceptionRetrieves the current list of allowed APIs accessible to a normal user.- Throws:
IOExceptionOpenSearchException
-
getAuditConfiguration
public CompletableFuture<GetAuditConfigurationResponse> getAuditConfiguration(GetAuditConfigurationRequest request) throws IOException, OpenSearchException Retrieves the audit configuration.- Throws:
IOExceptionOpenSearchException
-
getAuditConfiguration
public final CompletableFuture<GetAuditConfigurationResponse> getAuditConfiguration(Function<GetAuditConfigurationRequest.Builder, ObjectBuilder<GetAuditConfigurationRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the audit configuration.- Parameters:
fn- a function that initializes a builder to create theGetAuditConfigurationRequest- Throws:
IOExceptionOpenSearchException
-
getAuditConfiguration
public final CompletableFuture<GetAuditConfigurationResponse> getAuditConfiguration() throws IOException, OpenSearchExceptionRetrieves the audit configuration.- Throws:
IOExceptionOpenSearchException
-
getCertificates
public CompletableFuture<GetCertificatesResponse> getCertificates(GetCertificatesRequest request) throws IOException, OpenSearchException Retrieves the cluster security certificates.- Throws:
IOExceptionOpenSearchException
-
getCertificates
public final CompletableFuture<GetCertificatesResponse> getCertificates(Function<GetCertificatesRequest.Builder, ObjectBuilder<GetCertificatesRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the cluster security certificates.- Parameters:
fn- a function that initializes a builder to create theGetCertificatesRequest- Throws:
IOExceptionOpenSearchException
-
getCertificates
public final CompletableFuture<GetCertificatesResponse> getCertificates() throws IOException, OpenSearchExceptionRetrieves the cluster security certificates.- Throws:
IOExceptionOpenSearchException
-
getConfiguration
public CompletableFuture<GetConfigurationResponse> getConfiguration(GetConfigurationRequest request) throws IOException, OpenSearchException Returns the current Security plugin configuration in a JSON format.- Throws:
IOExceptionOpenSearchException
-
getConfiguration
public final CompletableFuture<GetConfigurationResponse> getConfiguration(Function<GetConfigurationRequest.Builder, ObjectBuilder<GetConfigurationRequest>> fn) throws IOException, OpenSearchExceptionReturns the current Security plugin configuration in a JSON format.- Parameters:
fn- a function that initializes a builder to create theGetConfigurationRequest- Throws:
IOExceptionOpenSearchException
-
getConfiguration
public final CompletableFuture<GetConfigurationResponse> getConfiguration() throws IOException, OpenSearchExceptionReturns the current Security plugin configuration in a JSON format.- Throws:
IOExceptionOpenSearchException
-
getDashboardsInfo
public CompletableFuture<GetDashboardsInfoResponse> getDashboardsInfo(GetDashboardsInfoRequest request) throws IOException, OpenSearchException Retrieves the current values for dynamic security settings for OpenSearch Dashboards.- Throws:
IOExceptionOpenSearchException
-
getDashboardsInfo
public final CompletableFuture<GetDashboardsInfoResponse> getDashboardsInfo(Function<GetDashboardsInfoRequest.Builder, ObjectBuilder<GetDashboardsInfoRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the current values for dynamic security settings for OpenSearch Dashboards.- Parameters:
fn- a function that initializes a builder to create theGetDashboardsInfoRequest- Throws:
IOExceptionOpenSearchException
-
getDashboardsInfo
public final CompletableFuture<GetDashboardsInfoResponse> getDashboardsInfo() throws IOException, OpenSearchExceptionRetrieves the current values for dynamic security settings for OpenSearch Dashboards.- Throws:
IOExceptionOpenSearchException
-
getDistinguishedName
public CompletableFuture<GetDistinguishedNameResponse> getDistinguishedName(GetDistinguishedNameRequest request) throws IOException, OpenSearchException Retrieves all node distinguished names. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
getDistinguishedName
public final CompletableFuture<GetDistinguishedNameResponse> getDistinguishedName(Function<GetDistinguishedNameRequest.Builder, ObjectBuilder<GetDistinguishedNameRequest>> fn) throws IOException, OpenSearchExceptionRetrieves all node distinguished names. Requires super admin or REST API permissions.- Parameters:
fn- a function that initializes a builder to create theGetDistinguishedNameRequest- Throws:
IOExceptionOpenSearchException
-
getDistinguishedNames
public CompletableFuture<GetDistinguishedNamesResponse> getDistinguishedNames(GetDistinguishedNamesRequest request) throws IOException, OpenSearchException Retrieves all node distinguished names. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
getDistinguishedNames
public final CompletableFuture<GetDistinguishedNamesResponse> getDistinguishedNames(Function<GetDistinguishedNamesRequest.Builder, ObjectBuilder<GetDistinguishedNamesRequest>> fn) throws IOException, OpenSearchExceptionRetrieves all node distinguished names. Requires super admin or REST API permissions.- Parameters:
fn- a function that initializes a builder to create theGetDistinguishedNamesRequest- Throws:
IOExceptionOpenSearchException
-
getDistinguishedNames
public final CompletableFuture<GetDistinguishedNamesResponse> getDistinguishedNames() throws IOException, OpenSearchExceptionRetrieves all node distinguished names. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
getNodeCertificates
public CompletableFuture<GetNodeCertificatesResponse> getNodeCertificates(GetNodeCertificatesRequest request) throws IOException, OpenSearchException Retrieves the specified node's security certificates.- Throws:
IOExceptionOpenSearchException
-
getNodeCertificates
public final CompletableFuture<GetNodeCertificatesResponse> getNodeCertificates(Function<GetNodeCertificatesRequest.Builder, ObjectBuilder<GetNodeCertificatesRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the specified node's security certificates.- Parameters:
fn- a function that initializes a builder to create theGetNodeCertificatesRequest- Throws:
IOExceptionOpenSearchException
-
getPermissionsInfo
public CompletableFuture<GetPermissionsInfoResponse> getPermissionsInfo(GetPermissionsInfoRequest request) throws IOException, OpenSearchException Retrieves the evaluated REST API permissions for the currently logged in user.- Throws:
IOExceptionOpenSearchException
-
getPermissionsInfo
public final CompletableFuture<GetPermissionsInfoResponse> getPermissionsInfo(Function<GetPermissionsInfoRequest.Builder, ObjectBuilder<GetPermissionsInfoRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the evaluated REST API permissions for the currently logged in user.- Parameters:
fn- a function that initializes a builder to create theGetPermissionsInfoRequest- Throws:
IOExceptionOpenSearchException
-
getPermissionsInfo
public final CompletableFuture<GetPermissionsInfoResponse> getPermissionsInfo() throws IOException, OpenSearchExceptionRetrieves the evaluated REST API permissions for the currently logged in user.- Throws:
IOExceptionOpenSearchException
-
getRole
public CompletableFuture<GetRoleResponse> getRole(GetRoleRequest request) throws IOException, OpenSearchException Retrieves one role.- Throws:
IOExceptionOpenSearchException
-
getRole
public final CompletableFuture<GetRoleResponse> getRole(Function<GetRoleRequest.Builder, ObjectBuilder<GetRoleRequest>> fn) throws IOException, OpenSearchExceptionRetrieves one role.- Parameters:
fn- a function that initializes a builder to create theGetRoleRequest- Throws:
IOExceptionOpenSearchException
-
getRoleMapping
public CompletableFuture<GetRoleMappingResponse> getRoleMapping(GetRoleMappingRequest request) throws IOException, OpenSearchException Retrieves the specified role mapping.- Throws:
IOExceptionOpenSearchException
-
getRoleMapping
public final CompletableFuture<GetRoleMappingResponse> getRoleMapping(Function<GetRoleMappingRequest.Builder, ObjectBuilder<GetRoleMappingRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the specified role mapping.- Parameters:
fn- a function that initializes a builder to create theGetRoleMappingRequest- Throws:
IOExceptionOpenSearchException
-
getRoleMappings
public CompletableFuture<GetRoleMappingsResponse> getRoleMappings(GetRoleMappingsRequest request) throws IOException, OpenSearchException Retrieves all role mappings.- Throws:
IOExceptionOpenSearchException
-
getRoleMappings
public final CompletableFuture<GetRoleMappingsResponse> getRoleMappings(Function<GetRoleMappingsRequest.Builder, ObjectBuilder<GetRoleMappingsRequest>> fn) throws IOException, OpenSearchExceptionRetrieves all role mappings.- Parameters:
fn- a function that initializes a builder to create theGetRoleMappingsRequest- Throws:
IOExceptionOpenSearchException
-
getRoleMappings
public final CompletableFuture<GetRoleMappingsResponse> getRoleMappings() throws IOException, OpenSearchExceptionRetrieves all role mappings.- Throws:
IOExceptionOpenSearchException
-
getRoles
public CompletableFuture<GetRolesResponse> getRoles(GetRolesRequest request) throws IOException, OpenSearchException Retrieves all roles.- Throws:
IOExceptionOpenSearchException
-
getRoles
public final CompletableFuture<GetRolesResponse> getRoles(Function<GetRolesRequest.Builder, ObjectBuilder<GetRolesRequest>> fn) throws IOException, OpenSearchExceptionRetrieves all roles.- Parameters:
fn- a function that initializes a builder to create theGetRolesRequest- Throws:
IOExceptionOpenSearchException
-
getRoles
Retrieves all roles.- Throws:
IOExceptionOpenSearchException
-
getSslinfo
public CompletableFuture<GetSslinfoResponse> getSslinfo(GetSslinfoRequest request) throws IOException, OpenSearchException Retrieves information about the SSL configuration.- Throws:
IOExceptionOpenSearchException
-
getSslinfo
public final CompletableFuture<GetSslinfoResponse> getSslinfo(Function<GetSslinfoRequest.Builder, ObjectBuilder<GetSslinfoRequest>> fn) throws IOException, OpenSearchExceptionRetrieves information about the SSL configuration.- Parameters:
fn- a function that initializes a builder to create theGetSslinfoRequest- Throws:
IOExceptionOpenSearchException
-
getSslinfo
public final CompletableFuture<GetSslinfoResponse> getSslinfo() throws IOException, OpenSearchExceptionRetrieves information about the SSL configuration.- Throws:
IOExceptionOpenSearchException
-
getTenancyConfig
public CompletableFuture<GetTenancyConfigResponse> getTenancyConfig(GetTenancyConfigRequest request) throws IOException, OpenSearchException Retrieves the multi-tenancy configuration. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
getTenancyConfig
public final CompletableFuture<GetTenancyConfigResponse> getTenancyConfig(Function<GetTenancyConfigRequest.Builder, ObjectBuilder<GetTenancyConfigRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the multi-tenancy configuration. Requires super admin or REST API permissions.- Parameters:
fn- a function that initializes a builder to create theGetTenancyConfigRequest- Throws:
IOExceptionOpenSearchException
-
getTenancyConfig
public final CompletableFuture<GetTenancyConfigResponse> getTenancyConfig() throws IOException, OpenSearchExceptionRetrieves the multi-tenancy configuration. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
getTenant
public CompletableFuture<GetTenantResponse> getTenant(GetTenantRequest request) throws IOException, OpenSearchException Retrieves the specified tenant.- Throws:
IOExceptionOpenSearchException
-
getTenant
public final CompletableFuture<GetTenantResponse> getTenant(Function<GetTenantRequest.Builder, ObjectBuilder<GetTenantRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the specified tenant.- Parameters:
fn- a function that initializes a builder to create theGetTenantRequest- Throws:
IOExceptionOpenSearchException
-
getTenants
public CompletableFuture<GetTenantsResponse> getTenants(GetTenantsRequest request) throws IOException, OpenSearchException Retrieves all tenants.- Throws:
IOExceptionOpenSearchException
-
getTenants
public final CompletableFuture<GetTenantsResponse> getTenants(Function<GetTenantsRequest.Builder, ObjectBuilder<GetTenantsRequest>> fn) throws IOException, OpenSearchExceptionRetrieves all tenants.- Parameters:
fn- a function that initializes a builder to create theGetTenantsRequest- Throws:
IOExceptionOpenSearchException
-
getTenants
public final CompletableFuture<GetTenantsResponse> getTenants() throws IOException, OpenSearchExceptionRetrieves all tenants.- Throws:
IOExceptionOpenSearchException
-
getUser
public CompletableFuture<GetUserResponse> getUser(GetUserRequest request) throws IOException, OpenSearchException Retrieve information about the specified internal user.- Throws:
IOExceptionOpenSearchException
-
getUser
public final CompletableFuture<GetUserResponse> getUser(Function<GetUserRequest.Builder, ObjectBuilder<GetUserRequest>> fn) throws IOException, OpenSearchExceptionRetrieve information about the specified internal user.- Parameters:
fn- a function that initializes a builder to create theGetUserRequest- Throws:
IOExceptionOpenSearchException
-
getUserLegacy
public CompletableFuture<GetUserLegacyResponse> getUserLegacy(GetUserLegacyRequest request) throws IOException, OpenSearchException Retrieve one user. Legacy API.- Throws:
IOExceptionOpenSearchException
-
getUserLegacy
public final CompletableFuture<GetUserLegacyResponse> getUserLegacy(Function<GetUserLegacyRequest.Builder, ObjectBuilder<GetUserLegacyRequest>> fn) throws IOException, OpenSearchExceptionRetrieve one user. Legacy API.- Parameters:
fn- a function that initializes a builder to create theGetUserLegacyRequest- Throws:
IOExceptionOpenSearchException
-
getUsers
public CompletableFuture<GetUsersResponse> getUsers(GetUsersRequest request) throws IOException, OpenSearchException Retrieve all internal users.- Throws:
IOExceptionOpenSearchException
-
getUsers
public final CompletableFuture<GetUsersResponse> getUsers(Function<GetUsersRequest.Builder, ObjectBuilder<GetUsersRequest>> fn) throws IOException, OpenSearchExceptionRetrieve all internal users.- Parameters:
fn- a function that initializes a builder to create theGetUsersRequest- Throws:
IOExceptionOpenSearchException
-
getUsers
Retrieve all internal users.- Throws:
IOExceptionOpenSearchException
-
getUsersLegacy
public CompletableFuture<GetUsersLegacyResponse> getUsersLegacy(GetUsersLegacyRequest request) throws IOException, OpenSearchException Retrieve all internal users. Legacy API.- Throws:
IOExceptionOpenSearchException
-
getUsersLegacy
public final CompletableFuture<GetUsersLegacyResponse> getUsersLegacy(Function<GetUsersLegacyRequest.Builder, ObjectBuilder<GetUsersLegacyRequest>> fn) throws IOException, OpenSearchExceptionRetrieve all internal users. Legacy API.- Parameters:
fn- a function that initializes a builder to create theGetUsersLegacyRequest- Throws:
IOExceptionOpenSearchException
-
getUsersLegacy
public final CompletableFuture<GetUsersLegacyResponse> getUsersLegacy() throws IOException, OpenSearchExceptionRetrieve all internal users. Legacy API.- Throws:
IOExceptionOpenSearchException
-
health
public CompletableFuture<HealthResponse> health(HealthRequest request) throws IOException, OpenSearchException Checks to see if the Security plugin is running.- Throws:
IOExceptionOpenSearchException
-
health
public final CompletableFuture<HealthResponse> health(Function<HealthRequest.Builder, ObjectBuilder<HealthRequest>> fn) throws IOException, OpenSearchExceptionChecks to see if the Security plugin is running.- Parameters:
fn- a function that initializes a builder to create theHealthRequest- Throws:
IOExceptionOpenSearchException
-
health
Checks to see if the Security plugin is running.- Throws:
IOExceptionOpenSearchException
-
migrate
public CompletableFuture<MigrateResponse> migrate(MigrateRequest request) throws IOException, OpenSearchException Migrates the security configuration from v6 to v7.- Throws:
IOExceptionOpenSearchException
-
migrate
public final CompletableFuture<MigrateResponse> migrate(Function<MigrateRequest.Builder, ObjectBuilder<MigrateRequest>> fn) throws IOException, OpenSearchExceptionMigrates the security configuration from v6 to v7.- Parameters:
fn- a function that initializes a builder to create theMigrateRequest- Throws:
IOExceptionOpenSearchException
-
migrate
Migrates the security configuration from v6 to v7.- Throws:
IOExceptionOpenSearchException
-
patchActionGroup
public CompletableFuture<PatchActionGroupResponse> patchActionGroup(PatchActionGroupRequest request) throws IOException, OpenSearchException Updates the individual attributes of an action group.- Throws:
IOExceptionOpenSearchException
-
patchActionGroup
public final CompletableFuture<PatchActionGroupResponse> patchActionGroup(Function<PatchActionGroupRequest.Builder, ObjectBuilder<PatchActionGroupRequest>> fn) throws IOException, OpenSearchExceptionUpdates the individual attributes of an action group.- Parameters:
fn- a function that initializes a builder to create thePatchActionGroupRequest- Throws:
IOExceptionOpenSearchException
-
patchActionGroups
public CompletableFuture<PatchActionGroupsResponse> patchActionGroups(PatchActionGroupsRequest request) throws IOException, OpenSearchException Creates, updates, or deletes multiple action groups in a single request.- Throws:
IOExceptionOpenSearchException
-
patchActionGroups
public final CompletableFuture<PatchActionGroupsResponse> patchActionGroups(Function<PatchActionGroupsRequest.Builder, ObjectBuilder<PatchActionGroupsRequest>> fn) throws IOException, OpenSearchExceptionCreates, updates, or deletes multiple action groups in a single request.- Parameters:
fn- a function that initializes a builder to create thePatchActionGroupsRequest- Throws:
IOExceptionOpenSearchException
-
patchAllowlist
public CompletableFuture<PatchAllowlistResponse> patchAllowlist(PatchAllowlistRequest request) throws IOException, OpenSearchException Updates the current list of APIs accessible for users on the allow list.- Throws:
IOExceptionOpenSearchException
-
patchAllowlist
public final CompletableFuture<PatchAllowlistResponse> patchAllowlist(Function<PatchAllowlistRequest.Builder, ObjectBuilder<PatchAllowlistRequest>> fn) throws IOException, OpenSearchExceptionUpdates the current list of APIs accessible for users on the allow list.- Parameters:
fn- a function that initializes a builder to create thePatchAllowlistRequest- Throws:
IOExceptionOpenSearchException
-
patchAuditConfiguration
public CompletableFuture<PatchAuditConfigurationResponse> patchAuditConfiguration(PatchAuditConfigurationRequest request) throws IOException, OpenSearchException Updates the specified fields in the audit configuration.- Throws:
IOExceptionOpenSearchException
-
patchAuditConfiguration
public final CompletableFuture<PatchAuditConfigurationResponse> patchAuditConfiguration(Function<PatchAuditConfigurationRequest.Builder, ObjectBuilder<PatchAuditConfigurationRequest>> fn) throws IOException, OpenSearchExceptionUpdates the specified fields in the audit configuration.- Parameters:
fn- a function that initializes a builder to create thePatchAuditConfigurationRequest- Throws:
IOExceptionOpenSearchException
-
patchConfiguration
public CompletableFuture<PatchConfigurationResponse> patchConfiguration(PatchConfigurationRequest request) throws IOException, OpenSearchException Updates the existing security configuration using the REST API. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
patchConfiguration
public final CompletableFuture<PatchConfigurationResponse> patchConfiguration(Function<PatchConfigurationRequest.Builder, ObjectBuilder<PatchConfigurationRequest>> fn) throws IOException, OpenSearchExceptionUpdates the existing security configuration using the REST API. Requires super admin or REST API permissions.- Parameters:
fn- a function that initializes a builder to create thePatchConfigurationRequest- Throws:
IOExceptionOpenSearchException
-
patchDistinguishedName
public CompletableFuture<PatchDistinguishedNameResponse> patchDistinguishedName(PatchDistinguishedNameRequest request) throws IOException, OpenSearchException Updates the distinguished cluster name for the specified cluster. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
patchDistinguishedName
public final CompletableFuture<PatchDistinguishedNameResponse> patchDistinguishedName(Function<PatchDistinguishedNameRequest.Builder, ObjectBuilder<PatchDistinguishedNameRequest>> fn) throws IOException, OpenSearchExceptionUpdates the distinguished cluster name for the specified cluster. Requires super admin or REST API permissions.- Parameters:
fn- a function that initializes a builder to create thePatchDistinguishedNameRequest- Throws:
IOExceptionOpenSearchException
-
patchDistinguishedNames
public CompletableFuture<PatchDistinguishedNamesResponse> patchDistinguishedNames(PatchDistinguishedNamesRequest request) throws IOException, OpenSearchException Bulk updates specified node distinguished names. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
patchDistinguishedNames
public final CompletableFuture<PatchDistinguishedNamesResponse> patchDistinguishedNames(Function<PatchDistinguishedNamesRequest.Builder, ObjectBuilder<PatchDistinguishedNamesRequest>> fn) throws IOException, OpenSearchExceptionBulk updates specified node distinguished names. Requires super admin or REST API permissions.- Parameters:
fn- a function that initializes a builder to create thePatchDistinguishedNamesRequest- Throws:
IOExceptionOpenSearchException
-
patchRole
public CompletableFuture<PatchRoleResponse> patchRole(PatchRoleRequest request) throws IOException, OpenSearchException Updates the individual attributes of a role.- Throws:
IOExceptionOpenSearchException
-
patchRole
public final CompletableFuture<PatchRoleResponse> patchRole(Function<PatchRoleRequest.Builder, ObjectBuilder<PatchRoleRequest>> fn) throws IOException, OpenSearchExceptionUpdates the individual attributes of a role.- Parameters:
fn- a function that initializes a builder to create thePatchRoleRequest- Throws:
IOExceptionOpenSearchException
-
patchRoleMapping
public CompletableFuture<PatchRoleMappingResponse> patchRoleMapping(PatchRoleMappingRequest request) throws IOException, OpenSearchException Updates the individual attributes of a role mapping.- Throws:
IOExceptionOpenSearchException
-
patchRoleMapping
public final CompletableFuture<PatchRoleMappingResponse> patchRoleMapping(Function<PatchRoleMappingRequest.Builder, ObjectBuilder<PatchRoleMappingRequest>> fn) throws IOException, OpenSearchExceptionUpdates the individual attributes of a role mapping.- Parameters:
fn- a function that initializes a builder to create thePatchRoleMappingRequest- Throws:
IOExceptionOpenSearchException
-
patchRoleMappings
public CompletableFuture<PatchRoleMappingsResponse> patchRoleMappings(PatchRoleMappingsRequest request) throws IOException, OpenSearchException Creates or updates multiple role mappings in a single request.- Throws:
IOExceptionOpenSearchException
-
patchRoleMappings
public final CompletableFuture<PatchRoleMappingsResponse> patchRoleMappings(Function<PatchRoleMappingsRequest.Builder, ObjectBuilder<PatchRoleMappingsRequest>> fn) throws IOException, OpenSearchExceptionCreates or updates multiple role mappings in a single request.- Parameters:
fn- a function that initializes a builder to create thePatchRoleMappingsRequest- Throws:
IOExceptionOpenSearchException
-
patchRoles
public CompletableFuture<PatchRolesResponse> patchRoles(PatchRolesRequest request) throws IOException, OpenSearchException Creates, updates, or deletes multiple roles in a single call.- Throws:
IOExceptionOpenSearchException
-
patchRoles
public final CompletableFuture<PatchRolesResponse> patchRoles(Function<PatchRolesRequest.Builder, ObjectBuilder<PatchRolesRequest>> fn) throws IOException, OpenSearchExceptionCreates, updates, or deletes multiple roles in a single call.- Parameters:
fn- a function that initializes a builder to create thePatchRolesRequest- Throws:
IOExceptionOpenSearchException
-
patchTenant
public CompletableFuture<PatchTenantResponse> patchTenant(PatchTenantRequest request) throws IOException, OpenSearchException Adds, deletes, or modifies a single tenant.- Throws:
IOExceptionOpenSearchException
-
patchTenant
public final CompletableFuture<PatchTenantResponse> patchTenant(Function<PatchTenantRequest.Builder, ObjectBuilder<PatchTenantRequest>> fn) throws IOException, OpenSearchExceptionAdds, deletes, or modifies a single tenant.- Parameters:
fn- a function that initializes a builder to create thePatchTenantRequest- Throws:
IOExceptionOpenSearchException
-
patchTenants
public CompletableFuture<PatchTenantsResponse> patchTenants(PatchTenantsRequest request) throws IOException, OpenSearchException Adds, deletes, or modifies multiple tenants in a single request.- Throws:
IOExceptionOpenSearchException
-
patchTenants
public final CompletableFuture<PatchTenantsResponse> patchTenants(Function<PatchTenantsRequest.Builder, ObjectBuilder<PatchTenantsRequest>> fn) throws IOException, OpenSearchExceptionAdds, deletes, or modifies multiple tenants in a single request.- Parameters:
fn- a function that initializes a builder to create thePatchTenantsRequest- Throws:
IOExceptionOpenSearchException
-
patchUser
public CompletableFuture<PatchUserResponse> patchUser(PatchUserRequest request) throws IOException, OpenSearchException Updates individual attributes for an internal user.- Throws:
IOExceptionOpenSearchException
-
patchUser
public final CompletableFuture<PatchUserResponse> patchUser(Function<PatchUserRequest.Builder, ObjectBuilder<PatchUserRequest>> fn) throws IOException, OpenSearchExceptionUpdates individual attributes for an internal user.- Parameters:
fn- a function that initializes a builder to create thePatchUserRequest- Throws:
IOExceptionOpenSearchException
-
patchUsers
public CompletableFuture<PatchUsersResponse> patchUsers(PatchUsersRequest request) throws IOException, OpenSearchException Creates, updates, or deletes multiple internal users in a single request.- Throws:
IOExceptionOpenSearchException
-
patchUsers
public final CompletableFuture<PatchUsersResponse> patchUsers(Function<PatchUsersRequest.Builder, ObjectBuilder<PatchUsersRequest>> fn) throws IOException, OpenSearchExceptionCreates, updates, or deletes multiple internal users in a single request.- Parameters:
fn- a function that initializes a builder to create thePatchUsersRequest- Throws:
IOExceptionOpenSearchException
-
postDashboardsInfo
public CompletableFuture<PostDashboardsInfoResponse> postDashboardsInfo(PostDashboardsInfoRequest request) throws IOException, OpenSearchException Retrieves the current values for dynamic security settings for OpenSearch Dashboards.- Throws:
IOExceptionOpenSearchException
-
postDashboardsInfo
public final CompletableFuture<PostDashboardsInfoResponse> postDashboardsInfo(Function<PostDashboardsInfoRequest.Builder, ObjectBuilder<PostDashboardsInfoRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the current values for dynamic security settings for OpenSearch Dashboards.- Parameters:
fn- a function that initializes a builder to create thePostDashboardsInfoRequest- Throws:
IOExceptionOpenSearchException
-
postDashboardsInfo
public final CompletableFuture<PostDashboardsInfoResponse> postDashboardsInfo() throws IOException, OpenSearchExceptionRetrieves the current values for dynamic security settings for OpenSearch Dashboards.- Throws:
IOExceptionOpenSearchException
-
reloadHttpCertificates
public CompletableFuture<ReloadHttpCertificatesResponse> reloadHttpCertificates(ReloadHttpCertificatesRequest request) throws IOException, OpenSearchException Reloads the HTTP communication certificates.- Throws:
IOExceptionOpenSearchException
-
reloadHttpCertificates
public final CompletableFuture<ReloadHttpCertificatesResponse> reloadHttpCertificates(Function<ReloadHttpCertificatesRequest.Builder, ObjectBuilder<ReloadHttpCertificatesRequest>> fn) throws IOException, OpenSearchExceptionReloads the HTTP communication certificates.- Parameters:
fn- a function that initializes a builder to create theReloadHttpCertificatesRequest- Throws:
IOExceptionOpenSearchException
-
reloadHttpCertificates
public final CompletableFuture<ReloadHttpCertificatesResponse> reloadHttpCertificates() throws IOException, OpenSearchExceptionReloads the HTTP communication certificates.- Throws:
IOExceptionOpenSearchException
-
reloadTransportCertificates
public CompletableFuture<ReloadTransportCertificatesResponse> reloadTransportCertificates(ReloadTransportCertificatesRequest request) throws IOException, OpenSearchException Reloads the transport communication certificates.- Throws:
IOExceptionOpenSearchException
-
reloadTransportCertificates
public final CompletableFuture<ReloadTransportCertificatesResponse> reloadTransportCertificates(Function<ReloadTransportCertificatesRequest.Builder, ObjectBuilder<ReloadTransportCertificatesRequest>> fn) throws IOException, OpenSearchExceptionReloads the transport communication certificates.- Parameters:
fn- a function that initializes a builder to create theReloadTransportCertificatesRequest- Throws:
IOExceptionOpenSearchException
-
reloadTransportCertificates
public final CompletableFuture<ReloadTransportCertificatesResponse> reloadTransportCertificates() throws IOException, OpenSearchExceptionReloads the transport communication certificates.- Throws:
IOExceptionOpenSearchException
-
tenantInfo
public CompletableFuture<TenantInfoResponse> tenantInfo(TenantInfoRequest request) throws IOException, OpenSearchException Retrieves the names of current tenants. Requires super admin orkibanaserverpermissions.- Throws:
IOExceptionOpenSearchException
-
tenantInfo
public final CompletableFuture<TenantInfoResponse> tenantInfo(Function<TenantInfoRequest.Builder, ObjectBuilder<TenantInfoRequest>> fn) throws IOException, OpenSearchExceptionRetrieves the names of current tenants. Requires super admin orkibanaserverpermissions.- Parameters:
fn- a function that initializes a builder to create theTenantInfoRequest- Throws:
IOExceptionOpenSearchException
-
tenantInfo
public final CompletableFuture<TenantInfoResponse> tenantInfo() throws IOException, OpenSearchExceptionRetrieves the names of current tenants. Requires super admin orkibanaserverpermissions.- Throws:
IOExceptionOpenSearchException
-
updateAuditConfiguration
public CompletableFuture<UpdateAuditConfigurationResponse> updateAuditConfiguration(UpdateAuditConfigurationRequest request) throws IOException, OpenSearchException Updates the audit configuration.- Throws:
IOExceptionOpenSearchException
-
updateAuditConfiguration
public final CompletableFuture<UpdateAuditConfigurationResponse> updateAuditConfiguration(Function<UpdateAuditConfigurationRequest.Builder, ObjectBuilder<UpdateAuditConfigurationRequest>> fn) throws IOException, OpenSearchExceptionUpdates the audit configuration.- Parameters:
fn- a function that initializes a builder to create theUpdateAuditConfigurationRequest- Throws:
IOExceptionOpenSearchException
-
updateAuditConfiguration
public final CompletableFuture<UpdateAuditConfigurationResponse> updateAuditConfiguration() throws IOException, OpenSearchExceptionUpdates the audit configuration.- Throws:
IOExceptionOpenSearchException
-
updateConfiguration
public CompletableFuture<UpdateConfigurationResponse> updateConfiguration(UpdateConfigurationRequest request) throws IOException, OpenSearchException Updates the settings for an existing security configuration. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
updateConfiguration
public final CompletableFuture<UpdateConfigurationResponse> updateConfiguration(Function<UpdateConfigurationRequest.Builder, ObjectBuilder<UpdateConfigurationRequest>> fn) throws IOException, OpenSearchExceptionUpdates the settings for an existing security configuration. Requires super admin or REST API permissions.- Parameters:
fn- a function that initializes a builder to create theUpdateConfigurationRequest- Throws:
IOExceptionOpenSearchException
-
updateConfiguration
public final CompletableFuture<UpdateConfigurationResponse> updateConfiguration() throws IOException, OpenSearchExceptionUpdates the settings for an existing security configuration. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
updateDistinguishedName
public CompletableFuture<UpdateDistinguishedNameResponse> updateDistinguishedName(UpdateDistinguishedNameRequest request) throws IOException, OpenSearchException Adds or updates the specified distinguished names in the cluster or node allowlist. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
updateDistinguishedName
public final CompletableFuture<UpdateDistinguishedNameResponse> updateDistinguishedName(Function<UpdateDistinguishedNameRequest.Builder, ObjectBuilder<UpdateDistinguishedNameRequest>> fn) throws IOException, OpenSearchExceptionAdds or updates the specified distinguished names in the cluster or node allowlist. Requires super admin or REST API permissions.- Parameters:
fn- a function that initializes a builder to create theUpdateDistinguishedNameRequest- Throws:
IOExceptionOpenSearchException
-
validate
public CompletableFuture<ValidateResponse> validate(ValidateRequest request) throws IOException, OpenSearchException Checks whether the v6 security configuration is valid and ready to be migrated to v7.- Throws:
IOExceptionOpenSearchException
-
validate
public final CompletableFuture<ValidateResponse> validate(Function<ValidateRequest.Builder, ObjectBuilder<ValidateRequest>> fn) throws IOException, OpenSearchExceptionChecks whether the v6 security configuration is valid and ready to be migrated to v7.- Parameters:
fn- a function that initializes a builder to create theValidateRequest- Throws:
IOExceptionOpenSearchException
-
validate
Checks whether the v6 security configuration is valid and ready to be migrated to v7.- Throws:
IOExceptionOpenSearchException
-
whoAmI
public CompletableFuture<WhoAmIResponse> whoAmI(WhoAmIRequest request) throws IOException, OpenSearchException Gets the identity information for the user currently logged in.- Throws:
IOExceptionOpenSearchException
-
whoAmI
public final CompletableFuture<WhoAmIResponse> whoAmI(Function<WhoAmIRequest.Builder, ObjectBuilder<WhoAmIRequest>> fn) throws IOException, OpenSearchExceptionGets the identity information for the user currently logged in.- Parameters:
fn- a function that initializes a builder to create theWhoAmIRequest- Throws:
IOExceptionOpenSearchException
-
whoAmI
Gets the identity information for the user currently logged in.- Throws:
IOExceptionOpenSearchException
-
whoAmIProtected
public CompletableFuture<WhoAmIProtectedResponse> whoAmIProtected(WhoAmIProtectedRequest request) throws IOException, OpenSearchException Gets the identity information for the user currently logged in. To use this operation, you must have access to this endpoint when authorization at REST layer is enabled.- Throws:
IOExceptionOpenSearchException
-
whoAmIProtected
public final CompletableFuture<WhoAmIProtectedResponse> whoAmIProtected(Function<WhoAmIProtectedRequest.Builder, ObjectBuilder<WhoAmIProtectedRequest>> fn) throws IOException, OpenSearchExceptionGets the identity information for the user currently logged in. To use this operation, you must have access to this endpoint when authorization at REST layer is enabled.- Parameters:
fn- a function that initializes a builder to create theWhoAmIProtectedRequest- Throws:
IOExceptionOpenSearchException
-
whoAmIProtected
public final CompletableFuture<WhoAmIProtectedResponse> whoAmIProtected() throws IOException, OpenSearchExceptionGets the identity information for the user currently logged in. To use this operation, you must have access to this endpoint when authorization at REST layer is enabled.- Throws:
IOExceptionOpenSearchException
-