Struct elasticsearch::security::Security[][src]

pub struct Security<'a> { /* fields omitted */ }

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]

Security Authenticate API

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]

Security Change Password API

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]

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]

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]

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]

Security Clear Cached Roles API

Evicts roles from the native role cache.

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

Security Create Api Key API

Creates an API key for access without requiring basic authentication.

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

Security Delete Privileges API

Removes application privileges.

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

Security Delete Role API

Removes roles in the native realm.

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

Security Delete Role Mapping API

Removes role mappings.

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

Security Delete User API

Deletes users from the native realm.

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

Security Disable User API

Disables users in the native realm.

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

Security Enable User API

Enables users in the native realm.

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

Security Get Api Key API

Retrieves information for one or more API keys.

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

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]

Security Get Privileges API

Retrieves application privileges.

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

Security Get Role API

Retrieves roles in the native realm.

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

Security Get Role Mapping API

Retrieves role mappings.

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

Security Get Token API

Creates a bearer token for access without requiring basic authentication.

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

Security Get User API

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]

Security Grant Api Key API

Creates an API key on behalf of another user.

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

Security Has Privileges API

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]

Security Invalidate Token API

Invalidates one or more access tokens or refresh tokens.

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

Security Put Privileges API

Adds or updates application privileges.

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

Security Put Role API

Adds and updates roles in the native realm.

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

Security Put Role Mapping API

Creates and updates role mappings.

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

Security Put User API

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.