Struct elasticsearch::security::Security [−][src]
Namespace client for Security APIs
Implementations
impl<'a> Security<'a>
[src]
pub fn new(transport: &'a Transport) -> Self
[src]
Creates a new instance of Security
pub fn transport(&self) -> &Transport
[src]
pub fn authenticate<'b>(&'a self) -> SecurityAuthenticate<'a, 'b>
[src]
Enables authentication as a user and retrieve information about the authenticated user.
pub fn change_password<'b>(
&'a self,
parts: SecurityChangePasswordParts<'b>
) -> SecurityChangePassword<'a, 'b, ()>
[src]
&'a self,
parts: SecurityChangePasswordParts<'b>
) -> SecurityChangePassword<'a, 'b, ()>
Changes the passwords of users in the native realm and built-in users.
pub fn clear_api_key_cache<'b>(
&'a self,
parts: SecurityClearApiKeyCacheParts<'b>
) -> SecurityClearApiKeyCache<'a, 'b, ()>
[src]
&'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.
pub fn clear_cached_privileges<'b>(
&'a self,
parts: SecurityClearCachedPrivilegesParts<'b>
) -> SecurityClearCachedPrivileges<'a, 'b, ()>
[src]
&'a self,
parts: SecurityClearCachedPrivilegesParts<'b>
) -> SecurityClearCachedPrivileges<'a, 'b, ()>
Security Clear Cached Privileges API
Evicts application privileges from the native application privileges cache.
pub fn clear_cached_realms<'b>(
&'a self,
parts: SecurityClearCachedRealmsParts<'b>
) -> SecurityClearCachedRealms<'a, 'b, ()>
[src]
&'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.
pub fn clear_cached_roles<'b>(
&'a self,
parts: SecurityClearCachedRolesParts<'b>
) -> SecurityClearCachedRoles<'a, 'b, ()>
[src]
&'a self,
parts: SecurityClearCachedRolesParts<'b>
) -> SecurityClearCachedRoles<'a, 'b, ()>
Security Clear Cached Roles API
Evicts roles from the native role cache.
pub fn create_api_key<'b>(&'a self) -> SecurityCreateApiKey<'a, 'b, ()>
[src]
Creates an API key for access without requiring basic authentication.
pub fn delete_privileges<'b>(
&'a self,
parts: SecurityDeletePrivilegesParts<'b>
) -> SecurityDeletePrivileges<'a, 'b>
[src]
&'a self,
parts: SecurityDeletePrivilegesParts<'b>
) -> SecurityDeletePrivileges<'a, 'b>
Security Delete Privileges API
Removes application privileges.
pub fn delete_role<'b>(
&'a self,
parts: SecurityDeleteRoleParts<'b>
) -> SecurityDeleteRole<'a, 'b>
[src]
&'a self,
parts: SecurityDeleteRoleParts<'b>
) -> SecurityDeleteRole<'a, 'b>
Removes roles in the native realm.
pub fn delete_role_mapping<'b>(
&'a self,
parts: SecurityDeleteRoleMappingParts<'b>
) -> SecurityDeleteRoleMapping<'a, 'b>
[src]
&'a self,
parts: SecurityDeleteRoleMappingParts<'b>
) -> SecurityDeleteRoleMapping<'a, 'b>
Security Delete Role Mapping API
Removes role mappings.
pub fn delete_user<'b>(
&'a self,
parts: SecurityDeleteUserParts<'b>
) -> SecurityDeleteUser<'a, 'b>
[src]
&'a self,
parts: SecurityDeleteUserParts<'b>
) -> SecurityDeleteUser<'a, 'b>
Deletes users from the native realm.
pub fn disable_user<'b>(
&'a self,
parts: SecurityDisableUserParts<'b>
) -> SecurityDisableUser<'a, 'b, ()>
[src]
&'a self,
parts: SecurityDisableUserParts<'b>
) -> SecurityDisableUser<'a, 'b, ()>
Disables users in the native realm.
pub fn enable_user<'b>(
&'a self,
parts: SecurityEnableUserParts<'b>
) -> SecurityEnableUser<'a, 'b, ()>
[src]
&'a self,
parts: SecurityEnableUserParts<'b>
) -> SecurityEnableUser<'a, 'b, ()>
Enables users in the native realm.
pub fn get_api_key<'b>(&'a self) -> SecurityGetApiKey<'a, 'b>
[src]
Retrieves information for one or more API keys.
pub fn get_builtin_privileges<'b>(
&'a self
) -> SecurityGetBuiltinPrivileges<'a, 'b>
[src]
&'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.
pub fn get_privileges<'b>(
&'a self,
parts: SecurityGetPrivilegesParts<'b>
) -> SecurityGetPrivileges<'a, 'b>
[src]
&'a self,
parts: SecurityGetPrivilegesParts<'b>
) -> SecurityGetPrivileges<'a, 'b>
Retrieves application privileges.
pub fn get_role<'b>(
&'a self,
parts: SecurityGetRoleParts<'b>
) -> SecurityGetRole<'a, 'b>
[src]
&'a self,
parts: SecurityGetRoleParts<'b>
) -> SecurityGetRole<'a, 'b>
Retrieves roles in the native realm.
pub fn get_role_mapping<'b>(
&'a self,
parts: SecurityGetRoleMappingParts<'b>
) -> SecurityGetRoleMapping<'a, 'b>
[src]
&'a self,
parts: SecurityGetRoleMappingParts<'b>
) -> SecurityGetRoleMapping<'a, 'b>
Retrieves role mappings.
pub fn get_token<'b>(&'a self) -> SecurityGetToken<'a, 'b, ()>
[src]
Creates a bearer token for access without requiring basic authentication.
pub fn get_user<'b>(
&'a self,
parts: SecurityGetUserParts<'b>
) -> SecurityGetUser<'a, 'b>
[src]
&'a self,
parts: SecurityGetUserParts<'b>
) -> SecurityGetUser<'a, 'b>
Retrieves information about users in the native realm and built-in users.
pub fn get_user_privileges<'b>(&'a self) -> SecurityGetUserPrivileges<'a, 'b>
[src]
Security Get User Privileges API
Retrieves application privileges.
pub fn grant_api_key<'b>(&'a self) -> SecurityGrantApiKey<'a, 'b, ()>
[src]
Creates an API key on behalf of another user.
pub fn has_privileges<'b>(
&'a self,
parts: SecurityHasPrivilegesParts<'b>
) -> SecurityHasPrivileges<'a, 'b, ()>
[src]
&'a self,
parts: SecurityHasPrivilegesParts<'b>
) -> SecurityHasPrivileges<'a, 'b, ()>
Determines whether the specified user has a specified list of privileges.
pub fn invalidate_api_key<'b>(&'a self) -> SecurityInvalidateApiKey<'a, 'b, ()>
[src]
Security Invalidate Api Key API
Invalidates one or more API keys.
pub fn invalidate_token<'b>(&'a self) -> SecurityInvalidateToken<'a, 'b, ()>
[src]
Invalidates one or more access tokens or refresh tokens.
pub fn put_privileges<'b>(&'a self) -> SecurityPutPrivileges<'a, 'b, ()>
[src]
Adds or updates application privileges.
pub fn put_role<'b>(
&'a self,
parts: SecurityPutRoleParts<'b>
) -> SecurityPutRole<'a, 'b, ()>
[src]
&'a self,
parts: SecurityPutRoleParts<'b>
) -> SecurityPutRole<'a, 'b, ()>
Adds and updates roles in the native realm.
pub fn put_role_mapping<'b>(
&'a self,
parts: SecurityPutRoleMappingParts<'b>
) -> SecurityPutRoleMapping<'a, 'b, ()>
[src]
&'a self,
parts: SecurityPutRoleMappingParts<'b>
) -> SecurityPutRoleMapping<'a, 'b, ()>
Creates and updates role mappings.
pub fn put_user<'b>(
&'a self,
parts: SecurityPutUserParts<'b>
) -> SecurityPutUser<'a, 'b, ()>
[src]
&'a self,
parts: SecurityPutUserParts<'b>
) -> SecurityPutUser<'a, 'b, ()>
Adds and updates users in the native realm. These users are commonly referred to as native users.
Auto Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,