GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Search::Elasticsearch::Client::6_0::Direct::XPack::Security(3) User Contributed Perl Documentation Search::Elasticsearch::Client::6_0::Direct::XPack::Security(3)

Search::Elasticsearch::Client::6_0::Direct::XPack::Security - Plugin providing Security API for Search::Elasticsearch 6.x

version 7.717

    my $response = $es->xpack->security->authenticate();

This class extends the Search::Elasticsearch client with a "security" namespace, to support the Security APIs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api.html>.

The full documentation for the Security feature is available here: <https://www.elastic.co/guide/en/x-pack/current/xpack-security.html>

    $response = $es->xpack->security->authenticate()

The authenticate() method checks that the "userinfo" is correct and returns a list of which roles are assigned to the user.

See the authenticate docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->clear_cached_realms(
        realms => $realms       # required  (comma-separated string)
    );

The clear_cached_realms() method clears the caches for the specified realms

Query string parameters:
"error_trace",
"human",
"usernames"

See the clear_cached_realms docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html> for more information.

    $response = $es->xpack->security->put_user(
        username => $username,     # required
        body     => {...}          # required
    );

The put_user() method creates a new user or updates an existing user.

See the User Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->get_user(
        username => $username | \@usernames     # optional
    );

The get_user() method retrieves info for the specified users (or all users).

See the User Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->delete_user(
        username => $username       # required
    );

The delete_user() method deletes the specified user.

See the User Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->change_password(
        username => $username       # optional
        body => {
            password => $password   # required
        }
    )

The change_password() method changes the password for the specified user.

See the User Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html> for more information.

    $response = $es->xpack->security->disable_user(
        username => $username       # required
    );

The disable_user() method disables the specified user.

See the User Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->enable_user(
        username => $username       # required
    );

The enable_user() method enables the specified user.

See the User Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->put_role(
        name => $name,             # required
        body     => {...}          # required
    );

The put_role() method creates a new role or updates an existing role.

See the Role Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->get_role(
        name => $name | \@names     # optional
    );

The get_role() method retrieves info for the specified roles (or all roles).

See the Role Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->delete_role(
        name => $name       # required
    );

The delete_role() method deletes the specified role.

See the Role Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->clear_cached_roles(
        names => $names       # required  (comma-separated string)
    );

The clear_cached_roles() method clears the caches for the specified roles.

See the Role Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->put_role_mapping(
        name => $name,             # required
        body     => {...}          # required
    );

The put_role_mapping() method creates a new role mapping or updates an existing role mapping.

See the Role Mapping docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->get_role_mapping(
        name => $name,             # optional
    );

The get_role_mapping() method retrieves one or more role mappings.

See the Role Mapping docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->delete_role_mapping(
        name => $name,             # required
    );

The delete_role_mapping() method deletes a role mapping.

See the Role Mapping docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->get_token(
        body     => {...}          # required
    );

The get_token() method enables you to create bearer tokens for access without requiring basic authentication.

See the Token Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->invalidate_token(
        body     => {...}          # required
    );

The invalidate_token() method enables you to invalidate bearer tokens for access without requiring basic authentication.

See the Token Management docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html> for more information.

Query string parameters:
"error_trace",
"human"

    $response = $es->xpack->security->create_api_key(
        body    => {...}            # required
    )

The create_api_key() API is used to create API keys which can be used for access instead of basic authentication.

Query string parameters:
"error_trace",
"filter_path",
"human",
"refresh"

See the Create API Key docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html> for more.

    $response = $es->xpack->security->get_api_key(
        id          => $id,         # optional
        name        => $name,       # optional
        realm_name  => $realm,      # optional
        username    => $username    # optional
    )

The get_api_key() API is used to get information about an API key.

Query string parameters:
"error_trace",
"filter_path",
"human",
"id",
"name",
"realm_name",
"username"

See the Get API Key docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html> for more.

    $response = $es->xpack->security->invalidate_api_key(
        id          => $id,         # optional
        name        => $name,       # optional
        realm_name  => $realm,      # optional
        username    => $username    # optional
    )

The invalidate_api_key() API is used to invalidate an API key.

Query string parameters:
"error_trace",
"filter_path",
"human",
"id",
"name",
"realm_name",
"username"

See the Invalidate API Key docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html> for more.

    $response = $es->xpack->get_user_privileges();
 The C<get_user_privileges()> method retrieves the privileges granted to the current user.
 Query string parameters:
    C<error_trace>,
    C<filter_path>,
    C<human>

 The C<has_privileges()> method checks whether the current or specified user has the listed privileges.
 Query string parameters:
    C<error_trace>,
    C<filter_path>,
    C<human>

See the Has Privileges docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html> for more.

    $response = $es->xpack->put_privileges(
        application     => $application,    # required
        name            => $name,           # required
        body            => {...}            # required
    );
 The C<put_privileges()> method creates or updates the named privilege for a particular application.
 Query string parameters:
    C<error_trace>,
    C<filter_path>,
    C<human>,
    C<refresh>

See the Create or Update Application Privileges docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html> for more.

    $response = $es->xpack->get_privileges(
        application     => $application,    # required
        name            => $name,           # required
    );
 The C<get_privileges()> method retrieves the named privilege for a particular application.
 Query string parameters:
    C<error_trace>,
    C<filter_path>,
    C<human>

See the Get Application Privileges docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html> for more.

    $response = $es->xpack->delete_privileges(
        application     => $application,    # required
        name            => $name,           # required
    );
 The C<delete_privileges()> method deletes the named privilege for a particular application.
 Query string parameters:
    C<error_trace>,
    C<filter_path>,
    C<human>,
    C<refresh>

See the Delete Application Privileges docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html> for more.

Enrico Zimuel <enrico.zimuel@elastic.co>

This software is Copyright (c) 2022 by Elasticsearch BV.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004
2022-07-28 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.