Struct Security

Source
pub struct Security<'a> { /* private fields */ }
Expand description

Namespace client for Security APIs

Implementations§

Source§

impl<'a> Security<'a>

Source

pub fn new(transport: &'a Transport) -> Self

Creates a new instance of Security

Source

pub fn transport(&self) -> &Transport

Source

pub fn activate_user_profile<'b>( &'a self, ) -> SecurityActivateUserProfile<'a, 'b, ()>

Security Activate User Profile API

Creates or updates the user profile on behalf of another user.

Source

pub fn authenticate<'b>(&'a self) -> SecurityAuthenticate<'a, 'b>

Security Authenticate API

Enables authentication as a user and retrieve information about the authenticated user.

Source

pub fn bulk_delete_role<'b>(&'a self) -> SecurityBulkDeleteRole<'a, 'b, ()>

Security Bulk Delete Role API

Bulk delete roles in the native realm.

Source

pub fn bulk_put_role<'b>(&'a self) -> SecurityBulkPutRole<'a, 'b, ()>

Security Bulk Put Role API

Bulk adds and updates roles in the native realm.

Source

pub fn bulk_update_api_keys<'b>( &'a self, ) -> SecurityBulkUpdateApiKeys<'a, 'b, ()>

Security Bulk Update Api Keys API

Updates the attributes of multiple existing API keys.

Source

pub fn change_password<'b>( &'a self, parts: SecurityChangePasswordParts<'b>, ) -> SecurityChangePassword<'a, 'b, ()>

Security Change Password API

Changes the passwords of users in the native realm and built-in users.

Source

pub fn clear_api_key_cache<'b>( &'a self, parts: SecurityClearApiKeyCacheParts<'b>, ) -> SecurityClearApiKeyCache<'a, 'b, ()>

Security Clear Api Key Cache API

Clear a subset or all entries from the API key cache.

Source

pub fn clear_cached_privileges<'b>( &'a self, parts: SecurityClearCachedPrivilegesParts<'b>, ) -> SecurityClearCachedPrivileges<'a, 'b, ()>

Security Clear Cached Privileges API

Evicts application privileges from the native application privileges cache.

Source

pub fn clear_cached_realms<'b>( &'a self, parts: SecurityClearCachedRealmsParts<'b>, ) -> SecurityClearCachedRealms<'a, 'b, ()>

Security Clear Cached Realms API

Evicts users from the user cache. Can completely clear the cache or evict specific users.

Source

pub fn clear_cached_roles<'b>( &'a self, parts: SecurityClearCachedRolesParts<'b>, ) -> SecurityClearCachedRoles<'a, 'b, ()>

Security Clear Cached Roles API

Evicts roles from the native role cache.

Source

pub fn clear_cached_service_tokens<'b>( &'a self, parts: SecurityClearCachedServiceTokensParts<'b>, ) -> SecurityClearCachedServiceTokens<'a, 'b, ()>

Security Clear Cached Service Tokens API

Evicts tokens from the service account token caches.

Source

pub fn create_api_key<'b>(&'a self) -> SecurityCreateApiKey<'a, 'b, ()>

Security Create Api Key API

Creates an API key for access without requiring basic authentication.

Source

pub fn create_cross_cluster_api_key<'b>( &'a self, ) -> SecurityCreateCrossClusterApiKey<'a, 'b, ()>

Security Create Cross Cluster Api Key API

Creates a cross-cluster API key for API key based remote cluster access.

Source

pub fn create_service_token<'b>( &'a self, parts: SecurityCreateServiceTokenParts<'b>, ) -> SecurityCreateServiceToken<'a, 'b, ()>

Security Create Service Token API

Creates a service account token for access without requiring basic authentication.

Source

pub fn delegate_pki<'b>(&'a self) -> SecurityDelegatePki<'a, 'b, ()>

Security Delegate Pki API

Delegate PKI authentication.

Source

pub fn delete_privileges<'b>( &'a self, parts: SecurityDeletePrivilegesParts<'b>, ) -> SecurityDeletePrivileges<'a, 'b>

Security Delete Privileges API

Removes application privileges.

Source

pub fn delete_role<'b>( &'a self, parts: SecurityDeleteRoleParts<'b>, ) -> SecurityDeleteRole<'a, 'b>

Security Delete Role API

Removes roles in the native realm.

Source

pub fn delete_role_mapping<'b>( &'a self, parts: SecurityDeleteRoleMappingParts<'b>, ) -> SecurityDeleteRoleMapping<'a, 'b>

Security Delete Role Mapping API

Removes role mappings.

Source

pub fn delete_service_token<'b>( &'a self, parts: SecurityDeleteServiceTokenParts<'b>, ) -> SecurityDeleteServiceToken<'a, 'b>

Security Delete Service Token API

Deletes a service account token.

Source

pub fn delete_user<'b>( &'a self, parts: SecurityDeleteUserParts<'b>, ) -> SecurityDeleteUser<'a, 'b>

Security Delete User API

Deletes users from the native realm.

Source

pub fn disable_user<'b>( &'a self, parts: SecurityDisableUserParts<'b>, ) -> SecurityDisableUser<'a, 'b, ()>

Security Disable User API

Disables users in the native realm.

Source

pub fn disable_user_profile<'b>( &'a self, parts: SecurityDisableUserProfileParts<'b>, ) -> SecurityDisableUserProfile<'a, 'b, ()>

Security Disable User Profile API

Disables a user profile so it’s not visible in user profile searches.

Source

pub fn enable_user<'b>( &'a self, parts: SecurityEnableUserParts<'b>, ) -> SecurityEnableUser<'a, 'b, ()>

Security Enable User API

Enables users in the native realm.

Source

pub fn enable_user_profile<'b>( &'a self, parts: SecurityEnableUserProfileParts<'b>, ) -> SecurityEnableUserProfile<'a, 'b, ()>

Security Enable User Profile API

Enables a user profile so it’s visible in user profile searches.

Source

pub fn enroll_kibana<'b>(&'a self) -> SecurityEnrollKibana<'a, 'b>

Security Enroll Kibana API

Allows a kibana instance to configure itself to communicate with a secured elasticsearch cluster.

Source

pub fn enroll_node<'b>(&'a self) -> SecurityEnrollNode<'a, 'b>

Security Enroll Node API

Allows a new node to enroll to an existing cluster with security enabled.

Source

pub fn get_api_key<'b>(&'a self) -> SecurityGetApiKey<'a, 'b>

Security Get Api Key API

Retrieves information for one or more API keys.

Source

pub fn get_builtin_privileges<'b>( &'a self, ) -> SecurityGetBuiltinPrivileges<'a, 'b>

Security Get Builtin Privileges API

Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.

Source

pub fn get_privileges<'b>( &'a self, parts: SecurityGetPrivilegesParts<'b>, ) -> SecurityGetPrivileges<'a, 'b>

Security Get Privileges API

Retrieves application privileges.

Source

pub fn get_role<'b>( &'a self, parts: SecurityGetRoleParts<'b>, ) -> SecurityGetRole<'a, 'b>

Security Get Role API

Retrieves roles in the native realm.

Source

pub fn get_role_mapping<'b>( &'a self, parts: SecurityGetRoleMappingParts<'b>, ) -> SecurityGetRoleMapping<'a, 'b>

Security Get Role Mapping API

Retrieves role mappings.

Source

pub fn get_service_accounts<'b>( &'a self, parts: SecurityGetServiceAccountsParts<'b>, ) -> SecurityGetServiceAccounts<'a, 'b>

Security Get Service Accounts API

Retrieves information about service accounts.

Source

pub fn get_service_credentials<'b>( &'a self, parts: SecurityGetServiceCredentialsParts<'b>, ) -> SecurityGetServiceCredentials<'a, 'b>

Security Get Service Credentials API

Retrieves information of all service credentials for a service account.

Source

pub fn get_settings<'b>(&'a self) -> SecurityGetSettings<'a, 'b>

Security Get Settings API

Retrieve settings for the security system indices

Source

pub fn get_token<'b>(&'a self) -> SecurityGetToken<'a, 'b, ()>

Security Get Token API

Creates a bearer token for access without requiring basic authentication.

Source

pub fn get_user<'b>( &'a self, parts: SecurityGetUserParts<'b>, ) -> SecurityGetUser<'a, 'b>

Security Get User API

Retrieves information about users in the native realm and built-in users.

Source

pub fn get_user_privileges<'b>(&'a self) -> SecurityGetUserPrivileges<'a, 'b>

Security Get User Privileges API

Retrieves security privileges for the logged in user.

Source

pub fn get_user_profile<'b>( &'a self, parts: SecurityGetUserProfileParts<'b>, ) -> SecurityGetUserProfile<'a, 'b>

Security Get User Profile API

Retrieves user profiles for the given unique ID(s).

Source

pub fn grant_api_key<'b>(&'a self) -> SecurityGrantApiKey<'a, 'b, ()>

Security Grant Api Key API

Creates an API key on behalf of another user.

Source

pub fn has_privileges<'b>( &'a self, parts: SecurityHasPrivilegesParts<'b>, ) -> SecurityHasPrivileges<'a, 'b, ()>

Security Has Privileges API

Determines whether the specified user has a specified list of privileges.

Source

pub fn has_privileges_user_profile<'b>( &'a self, ) -> SecurityHasPrivilegesUserProfile<'a, 'b, ()>

Security Has Privileges User Profile API

Determines whether the users associated with the specified profile IDs have all the requested privileges.

Source

pub fn invalidate_api_key<'b>(&'a self) -> SecurityInvalidateApiKey<'a, 'b, ()>

Security Invalidate Api Key API

Invalidates one or more API keys.

Source

pub fn invalidate_token<'b>(&'a self) -> SecurityInvalidateToken<'a, 'b, ()>

Security Invalidate Token API

Invalidates one or more access tokens or refresh tokens.

Source

pub fn oidc_authenticate<'b>(&'a self) -> SecurityOidcAuthenticate<'a, 'b, ()>

Security Oidc Authenticate API

Exchanges an OpenID Connection authentication response message for an Elasticsearch access token and refresh token pair

Source

pub fn oidc_logout<'b>(&'a self) -> SecurityOidcLogout<'a, 'b, ()>

Security Oidc Logout API

Invalidates a refresh token and access token that was generated from the OpenID Connect Authenticate API

Source

pub fn oidc_prepare_authentication<'b>( &'a self, ) -> SecurityOidcPrepareAuthentication<'a, 'b, ()>

Security Oidc Prepare Authentication API

Creates an OAuth 2.0 authentication request as a URL string

Source

pub fn put_privileges<'b>(&'a self) -> SecurityPutPrivileges<'a, 'b, ()>

Security Put Privileges API

Adds or updates application privileges.

Source

pub fn put_role<'b>( &'a self, parts: SecurityPutRoleParts<'b>, ) -> SecurityPutRole<'a, 'b, ()>

Security Put Role API

Adds and updates roles in the native realm.

Source

pub fn put_role_mapping<'b>( &'a self, parts: SecurityPutRoleMappingParts<'b>, ) -> SecurityPutRoleMapping<'a, 'b, ()>

Security Put Role Mapping API

Creates and updates role mappings.

Source

pub fn put_user<'b>( &'a self, parts: SecurityPutUserParts<'b>, ) -> SecurityPutUser<'a, 'b, ()>

Security Put User API

Adds and updates users in the native realm. These users are commonly referred to as native users.

Source

pub fn query_api_keys<'b>(&'a self) -> SecurityQueryApiKeys<'a, 'b, ()>

Security Query Api Keys API

Retrieves information for API keys using a subset of query DSL

Source

pub fn query_role<'b>(&'a self) -> SecurityQueryRole<'a, 'b, ()>

Security Query Role API

Retrieves information for Roles using a subset of query DSL

Source

pub fn query_user<'b>(&'a self) -> SecurityQueryUser<'a, 'b, ()>

Security Query User API

Retrieves information for Users using a subset of query DSL

Source

pub fn saml_authenticate<'b>(&'a self) -> SecuritySamlAuthenticate<'a, 'b, ()>

Security Saml Authenticate API

Exchanges a SAML Response message for an Elasticsearch access token and refresh token pair

Source

pub fn saml_complete_logout<'b>( &'a self, ) -> SecuritySamlCompleteLogout<'a, 'b, ()>

Security Saml Complete Logout API

Verifies the logout response sent from the SAML IdP

Source

pub fn saml_invalidate<'b>(&'a self) -> SecuritySamlInvalidate<'a, 'b, ()>

Security Saml Invalidate API

Consumes a SAML LogoutRequest

Source

pub fn saml_logout<'b>(&'a self) -> SecuritySamlLogout<'a, 'b, ()>

Security Saml Logout API

Invalidates an access token and a refresh token that were generated via the SAML Authenticate API

Source

pub fn saml_prepare_authentication<'b>( &'a self, ) -> SecuritySamlPrepareAuthentication<'a, 'b, ()>

Security Saml Prepare Authentication API

Creates a SAML authentication request

Source

pub fn saml_service_provider_metadata<'b>( &'a self, parts: SecuritySamlServiceProviderMetadataParts<'b>, ) -> SecuritySamlServiceProviderMetadata<'a, 'b>

Security Saml Service Provider Metadata API

Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider

Source

pub fn suggest_user_profiles<'b>( &'a self, ) -> SecuritySuggestUserProfiles<'a, 'b, ()>

Security Suggest User Profiles API

Get suggestions for user profiles that match specified search criteria.

Source

pub fn update_api_key<'b>( &'a self, parts: SecurityUpdateApiKeyParts<'b>, ) -> SecurityUpdateApiKey<'a, 'b, ()>

Security Update Api Key API

Updates attributes of an existing API key.

Source

pub fn update_cross_cluster_api_key<'b>( &'a self, parts: SecurityUpdateCrossClusterApiKeyParts<'b>, ) -> SecurityUpdateCrossClusterApiKey<'a, 'b, ()>

Security Update Cross Cluster Api Key API

Updates attributes of an existing cross-cluster API key.

Source

pub fn update_settings<'b>(&'a self) -> SecurityUpdateSettings<'a, 'b, ()>

Security Update Settings API

Update settings for the security system index

Source

pub fn update_user_profile_data<'b>( &'a self, parts: SecurityUpdateUserProfileDataParts<'b>, ) -> SecurityUpdateUserProfileData<'a, 'b, ()>

Security Update User Profile Data API

Update application specific data for the user profile of the given unique ID.

Auto Trait Implementations§

§

impl<'a> Freeze for Security<'a>

§

impl<'a> !RefUnwindSafe for Security<'a>

§

impl<'a> Send for Security<'a>

§

impl<'a> Sync for Security<'a>

§

impl<'a> Unpin for Security<'a>

§

impl<'a> !UnwindSafe for Security<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> MaybeSendSync for T