Class OpenSearchSecurityClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchSecurityClient>
org.opensearch.client.opensearch.security.OpenSearchSecurityClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchSecurityClient
extends ApiClient<OpenSearchTransport,OpenSearchSecurityClient>
Client for the security namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchSecurityClient(OpenSearchTransport transport) OpenSearchSecurityClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionfinal AuthinfoResponseauthinfo()Returns or updates authentication information for the currently authenticated user.final AuthinfoResponseReturns or updates authentication information for the currently authenticated user.authinfo(AuthinfoRequest request) Returns or updates authentication information for the currently authenticated user.final AuthtokenResponseReturns the authorization token for the current user.final AuthtokenResponseReturns the authorization token for the current user.authtoken(AuthtokenRequest request) Returns the authorization token for the current user.final ChangePasswordResponseChanges 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.final CreateAllowlistResponseCreates or replaces APIs permitted for users on the allow list.final CreateAllowlistResponseCreates or replaces APIs permitted for users on the allow list.createAllowlist(CreateAllowlistRequest request) Creates or replaces APIs permitted for users on the allow list.final CreateRoleResponseCreates 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.final CreateTenantResponseCreates 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.final CreateUserResponseCreates or replaces the specified user.createUser(CreateUserRequest request) Creates or replaces the specified user.final CreateUserLegacyResponsecreateUserLegacy(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.final DeleteRoleResponseDeletes 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.final DeleteTenantResponseDeletes the specified tenant.deleteTenant(DeleteTenantRequest request) Deletes the specified tenant.final DeleteUserResponseDeletes the specified internal user.deleteUser(DeleteUserRequest request) Deletes the specified internal user.final DeleteUserLegacyResponsedeleteUserLegacy(Function<DeleteUserLegacyRequest.Builder, ObjectBuilder<DeleteUserLegacyRequest>> fn) Delete the specified user.deleteUserLegacy(DeleteUserLegacyRequest request) Delete the specified user.final FlushCacheResponseFlushes the Security plugin's user, authentication, and authorization cache.final FlushCacheResponseFlushes the Security plugin's user, authentication, and authorization cache.flushCache(FlushCacheRequest request) Flushes the Security plugin's user, authentication, and authorization cache.final GenerateOboTokenResponsegenerateOboToken(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 BooleanResponsegenerateUserTokenLegacy(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.final GetActionGroupResponseRetrieves one action group.getActionGroup(GetActionGroupRequest request) Retrieves one action group.final GetActionGroupsResponseRetrieves all action groups.final GetActionGroupsResponseRetrieves 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.final GetAllowlistResponseRetrieves the current list of allowed APIs accessible to a normal user.final GetAllowlistResponseRetrieves 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.final GetCertificatesResponseRetrieves the cluster security certificates.final GetCertificatesResponseRetrieves the cluster security certificates.getCertificates(GetCertificatesRequest request) Retrieves the cluster security certificates.final GetConfigurationResponseReturns the current Security plugin configuration in a JSON format.final GetConfigurationResponsegetConfiguration(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 GetRoleResponseRetrieves one role.getRole(GetRoleRequest request) Retrieves one role.final GetRoleMappingResponseRetrieves the specified role mapping.getRoleMapping(GetRoleMappingRequest request) Retrieves the specified role mapping.final GetRoleMappingsResponseRetrieves all role mappings.final GetRoleMappingsResponseRetrieves all role mappings.getRoleMappings(GetRoleMappingsRequest request) Retrieves all role mappings.final GetRolesResponsegetRoles()Retrieves all roles.final GetRolesResponseRetrieves all roles.getRoles(GetRolesRequest request) Retrieves all roles.final GetSslinfoResponseRetrieves information about the SSL configuration.final GetSslinfoResponseRetrieves information about the SSL configuration.getSslinfo(GetSslinfoRequest request) Retrieves information about the SSL configuration.final GetTenancyConfigResponseRetrieves the multi-tenancy configuration.final GetTenancyConfigResponsegetTenancyConfig(Function<GetTenancyConfigRequest.Builder, ObjectBuilder<GetTenancyConfigRequest>> fn) Retrieves the multi-tenancy configuration.getTenancyConfig(GetTenancyConfigRequest request) Retrieves the multi-tenancy configuration.final GetTenantResponseRetrieves the specified tenant.getTenant(GetTenantRequest request) Retrieves the specified tenant.final GetTenantsResponseRetrieves all tenants.final GetTenantsResponseRetrieves all tenants.getTenants(GetTenantsRequest request) Retrieves all tenants.final GetUserResponseRetrieve information about the specified internal user.getUser(GetUserRequest request) Retrieve information about the specified internal user.final GetUserLegacyResponseRetrieve one user.getUserLegacy(GetUserLegacyRequest request) Retrieve one user.final GetUsersResponsegetUsers()Retrieve all internal users.final GetUsersResponseRetrieve all internal users.getUsers(GetUsersRequest request) Retrieve all internal users.final GetUsersLegacyResponseRetrieve all internal users.final GetUsersLegacyResponseRetrieve all internal users.getUsersLegacy(GetUsersLegacyRequest request) Retrieve all internal users.final HealthResponsehealth()Checks to see if the Security plugin is running.final HealthResponseChecks to see if the Security plugin is running.health(HealthRequest request) Checks to see if the Security plugin is running.final MigrateResponsemigrate()Migrates the security configuration from v6 to v7.final MigrateResponseMigrates the security configuration from v6 to v7.migrate(MigrateRequest request) Migrates the security configuration from v6 to v7.final PatchActionGroupResponsepatchActionGroup(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.final PatchAllowlistResponseUpdates 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.final PatchRoleResponseUpdates the individual attributes of a role.patchRole(PatchRoleRequest request) Updates the individual attributes of a role.final PatchRoleMappingResponsepatchRoleMapping(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.final PatchRolesResponseCreates, updates, or deletes multiple roles in a single call.patchRoles(PatchRolesRequest request) Creates, updates, or deletes multiple roles in a single call.final PatchTenantResponseAdds, deletes, or modifies a single tenant.patchTenant(PatchTenantRequest request) Adds, deletes, or modifies a single tenant.final PatchTenantsResponseAdds, deletes, or modifies multiple tenants in a single request.patchTenants(PatchTenantsRequest request) Adds, deletes, or modifies multiple tenants in a single request.final PatchUserResponseUpdates individual attributes for an internal user.patchUser(PatchUserRequest request) Updates individual attributes for an internal user.final PatchUsersResponseCreates, 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.final TenantInfoResponseRetrieves the names of current tenants.final TenantInfoResponseRetrieves 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.final ValidateResponsevalidate()Checks whether the v6 security configuration is valid and ready to be migrated to v7.final ValidateResponseChecks 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 WhoAmIResponsewhoAmI()Gets the identity information for the user currently logged in.final WhoAmIResponseGets the identity information for the user currently logged in.whoAmI(WhoAmIRequest request) Gets the identity information for the user currently logged in.final WhoAmIProtectedResponseGets the identity information for the user currently logged in.final WhoAmIProtectedResponseGets 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
-
OpenSearchSecurityClient
-
OpenSearchSecurityClient
public OpenSearchSecurityClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchSecurityClient>
-
authinfo
Returns or updates authentication information for the currently authenticated user.- Throws:
IOExceptionOpenSearchException
-
authinfo
public final 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 AuthtokenResponse authtoken(AuthtokenRequest request) throws IOException, OpenSearchException Returns the authorization token for the current user.- Throws:
IOExceptionOpenSearchException
-
authtoken
public final 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
Returns the authorization token for the current user.- Throws:
IOExceptionOpenSearchException
-
changePassword
public ChangePasswordResponse changePassword(ChangePasswordRequest request) throws IOException, OpenSearchException Changes the password for the current user.- Throws:
IOExceptionOpenSearchException
-
changePassword
public final 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 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 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 ConfigUpgradeCheckResponse configUpgradeCheck() throws IOException, OpenSearchExceptionChecks whether or not an upgrade can be performed and which security resources can be updated.- Throws:
IOExceptionOpenSearchException
-
configUpgradePerform
public 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 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 ConfigUpgradePerformResponse configUpgradePerform() throws IOException, OpenSearchExceptionAssists the cluster operator with upgrading missing default values and stale default definitions.- Throws:
IOExceptionOpenSearchException
-
createActionGroup
public CreateActionGroupResponse createActionGroup(CreateActionGroupRequest request) throws IOException, OpenSearchException Creates or replaces the specified action group.- Throws:
IOExceptionOpenSearchException
-
createActionGroup
public final 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 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 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
Creates or replaces APIs permitted for users on the allow list. Requires a super admin certificate or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
createRole
public CreateRoleResponse createRole(CreateRoleRequest request) throws IOException, OpenSearchException Creates or replaces the specified role.- Throws:
IOExceptionOpenSearchException
-
createRole
public final 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 CreateRoleMappingResponse createRoleMapping(CreateRoleMappingRequest request) throws IOException, OpenSearchException Creates or replaces the specified role mapping.- Throws:
IOExceptionOpenSearchException
-
createRoleMapping
public final 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 CreateTenantResponse createTenant(CreateTenantRequest request) throws IOException, OpenSearchException Creates or replaces the specified tenant.- Throws:
IOExceptionOpenSearchException
-
createTenant
public final 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 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 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 CreateUpdateTenancyConfigResponse createUpdateTenancyConfig() throws IOException, OpenSearchExceptionCreates or replaces the multi-tenancy configuration. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
createUser
public CreateUserResponse createUser(CreateUserRequest request) throws IOException, OpenSearchException Creates or replaces the specified user.- Throws:
IOExceptionOpenSearchException
-
createUser
public final 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 CreateUserLegacyResponse createUserLegacy(CreateUserLegacyRequest request) throws IOException, OpenSearchException Creates or replaces the specified user. Legacy API.- Throws:
IOExceptionOpenSearchException
-
createUserLegacy
public final 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 DeleteActionGroupResponse deleteActionGroup(DeleteActionGroupRequest request) throws IOException, OpenSearchException Deletes the specified action group.- Throws:
IOExceptionOpenSearchException
-
deleteActionGroup
public final 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 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 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 DeleteRoleResponse deleteRole(DeleteRoleRequest request) throws IOException, OpenSearchException Deletes the specified role.- Throws:
IOExceptionOpenSearchException
-
deleteRole
public final 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 DeleteRoleMappingResponse deleteRoleMapping(DeleteRoleMappingRequest request) throws IOException, OpenSearchException Deletes the specified role mapping.- Throws:
IOExceptionOpenSearchException
-
deleteRoleMapping
public final 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 DeleteTenantResponse deleteTenant(DeleteTenantRequest request) throws IOException, OpenSearchException Deletes the specified tenant.- Throws:
IOExceptionOpenSearchException
-
deleteTenant
public final 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 DeleteUserResponse deleteUser(DeleteUserRequest request) throws IOException, OpenSearchException Deletes the specified internal user.- Throws:
IOExceptionOpenSearchException
-
deleteUser
public final 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 DeleteUserLegacyResponse deleteUserLegacy(DeleteUserLegacyRequest request) throws IOException, OpenSearchException Delete the specified user. Legacy API.- Throws:
IOExceptionOpenSearchException
-
deleteUserLegacy
public final 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 FlushCacheResponse flushCache(FlushCacheRequest request) throws IOException, OpenSearchException Flushes the Security plugin's user, authentication, and authorization cache.- Throws:
IOExceptionOpenSearchException
-
flushCache
public final 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
Flushes the Security plugin's user, authentication, and authorization cache.- Throws:
IOExceptionOpenSearchException
-
generateOboToken
public GenerateOboTokenResponse generateOboToken(GenerateOboTokenRequest request) throws IOException, OpenSearchException Generates aOn-Behalf-Oftoken for the current user.- Throws:
IOExceptionOpenSearchException
-
generateOboToken
public final 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 GenerateUserTokenResponse generateUserToken(GenerateUserTokenRequest request) throws IOException, OpenSearchException Generates an authorization token for the specified user.- Throws:
IOExceptionOpenSearchException
-
generateUserToken
public final 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 BooleanResponse generateUserTokenLegacy(GenerateUserTokenLegacyRequest request) throws IOException, OpenSearchException Generates authorization token for the given user. Legacy API. Not Implemented.- Throws:
IOExceptionOpenSearchException
-
generateUserTokenLegacy
public final 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 GetAccountDetailsResponse getAccountDetails(GetAccountDetailsRequest request) throws IOException, OpenSearchException Returns account information for the current user.- Throws:
IOExceptionOpenSearchException
-
getAccountDetails
public final 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
Returns account information for the current user.- Throws:
IOExceptionOpenSearchException
-
getActionGroup
public GetActionGroupResponse getActionGroup(GetActionGroupRequest request) throws IOException, OpenSearchException Retrieves one action group.- Throws:
IOExceptionOpenSearchException
-
getActionGroup
public final 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 GetActionGroupsResponse getActionGroups(GetActionGroupsRequest request) throws IOException, OpenSearchException Retrieves all action groups.- Throws:
IOExceptionOpenSearchException
-
getActionGroups
public final 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
Retrieves all action groups.- Throws:
IOExceptionOpenSearchException
-
getAllCertificates
public GetAllCertificatesResponse getAllCertificates(GetAllCertificatesRequest request) throws IOException, OpenSearchException Retrieves the cluster security certificates.- Throws:
IOExceptionOpenSearchException
-
getAllCertificates
public final 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 GetAllCertificatesResponse getAllCertificates() throws IOException, OpenSearchExceptionRetrieves the cluster security certificates.- Throws:
IOExceptionOpenSearchException
-
getAllowlist
public GetAllowlistResponse getAllowlist(GetAllowlistRequest request) throws IOException, OpenSearchException Retrieves the current list of allowed APIs accessible to a normal user.- Throws:
IOExceptionOpenSearchException
-
getAllowlist
public final 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
Retrieves the current list of allowed APIs accessible to a normal user.- Throws:
IOExceptionOpenSearchException
-
getAuditConfiguration
public GetAuditConfigurationResponse getAuditConfiguration(GetAuditConfigurationRequest request) throws IOException, OpenSearchException Retrieves the audit configuration.- Throws:
IOExceptionOpenSearchException
-
getAuditConfiguration
public final 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 GetAuditConfigurationResponse getAuditConfiguration() throws IOException, OpenSearchExceptionRetrieves the audit configuration.- Throws:
IOExceptionOpenSearchException
-
getCertificates
public GetCertificatesResponse getCertificates(GetCertificatesRequest request) throws IOException, OpenSearchException Retrieves the cluster security certificates.- Throws:
IOExceptionOpenSearchException
-
getCertificates
public final 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
Retrieves the cluster security certificates.- Throws:
IOExceptionOpenSearchException
-
getConfiguration
public GetConfigurationResponse getConfiguration(GetConfigurationRequest request) throws IOException, OpenSearchException Returns the current Security plugin configuration in a JSON format.- Throws:
IOExceptionOpenSearchException
-
getConfiguration
public final 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
Returns the current Security plugin configuration in a JSON format.- Throws:
IOExceptionOpenSearchException
-
getDashboardsInfo
public GetDashboardsInfoResponse getDashboardsInfo(GetDashboardsInfoRequest request) throws IOException, OpenSearchException Retrieves the current values for dynamic security settings for OpenSearch Dashboards.- Throws:
IOExceptionOpenSearchException
-
getDashboardsInfo
public final 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
Retrieves the current values for dynamic security settings for OpenSearch Dashboards.- Throws:
IOExceptionOpenSearchException
-
getDistinguishedName
public GetDistinguishedNameResponse getDistinguishedName(GetDistinguishedNameRequest request) throws IOException, OpenSearchException Retrieves all node distinguished names. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
getDistinguishedName
public final 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 GetDistinguishedNamesResponse getDistinguishedNames(GetDistinguishedNamesRequest request) throws IOException, OpenSearchException Retrieves all node distinguished names. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
getDistinguishedNames
public final 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 GetDistinguishedNamesResponse getDistinguishedNames() throws IOException, OpenSearchExceptionRetrieves all node distinguished names. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
getNodeCertificates
public GetNodeCertificatesResponse getNodeCertificates(GetNodeCertificatesRequest request) throws IOException, OpenSearchException Retrieves the specified node's security certificates.- Throws:
IOExceptionOpenSearchException
-
getNodeCertificates
public final 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 GetPermissionsInfoResponse getPermissionsInfo(GetPermissionsInfoRequest request) throws IOException, OpenSearchException Retrieves the evaluated REST API permissions for the currently logged in user.- Throws:
IOExceptionOpenSearchException
-
getPermissionsInfo
public final 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 GetPermissionsInfoResponse getPermissionsInfo() throws IOException, OpenSearchExceptionRetrieves the evaluated REST API permissions for the currently logged in user.- Throws:
IOExceptionOpenSearchException
-
getRole
Retrieves one role.- Throws:
IOExceptionOpenSearchException
-
getRole
public final 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 GetRoleMappingResponse getRoleMapping(GetRoleMappingRequest request) throws IOException, OpenSearchException Retrieves the specified role mapping.- Throws:
IOExceptionOpenSearchException
-
getRoleMapping
public final 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 GetRoleMappingsResponse getRoleMappings(GetRoleMappingsRequest request) throws IOException, OpenSearchException Retrieves all role mappings.- Throws:
IOExceptionOpenSearchException
-
getRoleMappings
public final 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
Retrieves all role mappings.- Throws:
IOExceptionOpenSearchException
-
getRoles
Retrieves all roles.- Throws:
IOExceptionOpenSearchException
-
getRoles
public final 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 GetSslinfoResponse getSslinfo(GetSslinfoRequest request) throws IOException, OpenSearchException Retrieves information about the SSL configuration.- Throws:
IOExceptionOpenSearchException
-
getSslinfo
public final 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
Retrieves information about the SSL configuration.- Throws:
IOExceptionOpenSearchException
-
getTenancyConfig
public GetTenancyConfigResponse getTenancyConfig(GetTenancyConfigRequest request) throws IOException, OpenSearchException Retrieves the multi-tenancy configuration. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
getTenancyConfig
public final 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
Retrieves the multi-tenancy configuration. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
getTenant
public GetTenantResponse getTenant(GetTenantRequest request) throws IOException, OpenSearchException Retrieves the specified tenant.- Throws:
IOExceptionOpenSearchException
-
getTenant
public final 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 GetTenantsResponse getTenants(GetTenantsRequest request) throws IOException, OpenSearchException Retrieves all tenants.- Throws:
IOExceptionOpenSearchException
-
getTenants
public final 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
Retrieves all tenants.- Throws:
IOExceptionOpenSearchException
-
getUser
Retrieve information about the specified internal user.- Throws:
IOExceptionOpenSearchException
-
getUser
public final 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 GetUserLegacyResponse getUserLegacy(GetUserLegacyRequest request) throws IOException, OpenSearchException Retrieve one user. Legacy API.- Throws:
IOExceptionOpenSearchException
-
getUserLegacy
public final 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
Retrieve all internal users.- Throws:
IOExceptionOpenSearchException
-
getUsers
public final 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 GetUsersLegacyResponse getUsersLegacy(GetUsersLegacyRequest request) throws IOException, OpenSearchException Retrieve all internal users. Legacy API.- Throws:
IOExceptionOpenSearchException
-
getUsersLegacy
public final 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
Retrieve all internal users. Legacy API.- Throws:
IOExceptionOpenSearchException
-
health
Checks to see if the Security plugin is running.- Throws:
IOExceptionOpenSearchException
-
health
public final 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
Migrates the security configuration from v6 to v7.- Throws:
IOExceptionOpenSearchException
-
migrate
public final 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 PatchActionGroupResponse patchActionGroup(PatchActionGroupRequest request) throws IOException, OpenSearchException Updates the individual attributes of an action group.- Throws:
IOExceptionOpenSearchException
-
patchActionGroup
public final 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 PatchActionGroupsResponse patchActionGroups(PatchActionGroupsRequest request) throws IOException, OpenSearchException Creates, updates, or deletes multiple action groups in a single request.- Throws:
IOExceptionOpenSearchException
-
patchActionGroups
public final 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 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 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 PatchAuditConfigurationResponse patchAuditConfiguration(PatchAuditConfigurationRequest request) throws IOException, OpenSearchException Updates the specified fields in the audit configuration.- Throws:
IOExceptionOpenSearchException
-
patchAuditConfiguration
public final 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 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 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 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 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 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 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 PatchRoleResponse patchRole(PatchRoleRequest request) throws IOException, OpenSearchException Updates the individual attributes of a role.- Throws:
IOExceptionOpenSearchException
-
patchRole
public final 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 PatchRoleMappingResponse patchRoleMapping(PatchRoleMappingRequest request) throws IOException, OpenSearchException Updates the individual attributes of a role mapping.- Throws:
IOExceptionOpenSearchException
-
patchRoleMapping
public final 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 PatchRoleMappingsResponse patchRoleMappings(PatchRoleMappingsRequest request) throws IOException, OpenSearchException Creates or updates multiple role mappings in a single request.- Throws:
IOExceptionOpenSearchException
-
patchRoleMappings
public final 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 PatchRolesResponse patchRoles(PatchRolesRequest request) throws IOException, OpenSearchException Creates, updates, or deletes multiple roles in a single call.- Throws:
IOExceptionOpenSearchException
-
patchRoles
public final 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 PatchTenantResponse patchTenant(PatchTenantRequest request) throws IOException, OpenSearchException Adds, deletes, or modifies a single tenant.- Throws:
IOExceptionOpenSearchException
-
patchTenant
public final 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 PatchTenantsResponse patchTenants(PatchTenantsRequest request) throws IOException, OpenSearchException Adds, deletes, or modifies multiple tenants in a single request.- Throws:
IOExceptionOpenSearchException
-
patchTenants
public final 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 PatchUserResponse patchUser(PatchUserRequest request) throws IOException, OpenSearchException Updates individual attributes for an internal user.- Throws:
IOExceptionOpenSearchException
-
patchUser
public final 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 PatchUsersResponse patchUsers(PatchUsersRequest request) throws IOException, OpenSearchException Creates, updates, or deletes multiple internal users in a single request.- Throws:
IOExceptionOpenSearchException
-
patchUsers
public final 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 PostDashboardsInfoResponse postDashboardsInfo(PostDashboardsInfoRequest request) throws IOException, OpenSearchException Retrieves the current values for dynamic security settings for OpenSearch Dashboards.- Throws:
IOExceptionOpenSearchException
-
postDashboardsInfo
public final 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 PostDashboardsInfoResponse postDashboardsInfo() throws IOException, OpenSearchExceptionRetrieves the current values for dynamic security settings for OpenSearch Dashboards.- Throws:
IOExceptionOpenSearchException
-
reloadHttpCertificates
public ReloadHttpCertificatesResponse reloadHttpCertificates(ReloadHttpCertificatesRequest request) throws IOException, OpenSearchException Reloads the HTTP communication certificates.- Throws:
IOExceptionOpenSearchException
-
reloadHttpCertificates
public final 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 ReloadHttpCertificatesResponse reloadHttpCertificates() throws IOException, OpenSearchExceptionReloads the HTTP communication certificates.- Throws:
IOExceptionOpenSearchException
-
reloadTransportCertificates
public ReloadTransportCertificatesResponse reloadTransportCertificates(ReloadTransportCertificatesRequest request) throws IOException, OpenSearchException Reloads the transport communication certificates.- Throws:
IOExceptionOpenSearchException
-
reloadTransportCertificates
public final 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 ReloadTransportCertificatesResponse reloadTransportCertificates() throws IOException, OpenSearchExceptionReloads the transport communication certificates.- Throws:
IOExceptionOpenSearchException
-
tenantInfo
public TenantInfoResponse tenantInfo(TenantInfoRequest request) throws IOException, OpenSearchException Retrieves the names of current tenants. Requires super admin orkibanaserverpermissions.- Throws:
IOExceptionOpenSearchException
-
tenantInfo
public final 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
Retrieves the names of current tenants. Requires super admin orkibanaserverpermissions.- Throws:
IOExceptionOpenSearchException
-
updateAuditConfiguration
public UpdateAuditConfigurationResponse updateAuditConfiguration(UpdateAuditConfigurationRequest request) throws IOException, OpenSearchException Updates the audit configuration.- Throws:
IOExceptionOpenSearchException
-
updateAuditConfiguration
public final 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 UpdateAuditConfigurationResponse updateAuditConfiguration() throws IOException, OpenSearchExceptionUpdates the audit configuration.- Throws:
IOExceptionOpenSearchException
-
updateConfiguration
public 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 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 UpdateConfigurationResponse updateConfiguration() throws IOException, OpenSearchExceptionUpdates the settings for an existing security configuration. Requires super admin or REST API permissions.- Throws:
IOExceptionOpenSearchException
-
updateDistinguishedName
public 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 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
Checks whether the v6 security configuration is valid and ready to be migrated to v7.- Throws:
IOExceptionOpenSearchException
-
validate
public final 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
Gets the identity information for the user currently logged in.- Throws:
IOExceptionOpenSearchException
-
whoAmI
public final 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 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 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
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
-