Class GetApiKeyRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.GetApiKeyRequest

public class GetApiKeyRequest extends RequestBase
Retrieves information for one or more API keys. NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership.
See Also:
  • Field Details

  • Method Details

    • of

    • id

      @Nullable public final String id()
      An API key id. This parameter cannot be used with any of name, realm_name or username.

      API name: id

    • name

      @Nullable public final String name()
      An API key name. This parameter cannot be used with any of id, realm_name or username. It supports prefix search with wildcard.

      API name: name

    • owner

      @Nullable public final Boolean owner()
      A boolean flag that can be used to query API keys owned by the currently authenticated user. The realm_name or username parameters cannot be specified when this parameter is set to true as they are assumed to be the currently authenticated ones.

      API name: owner

    • realmName

      @Nullable public final String realmName()
      The name of an authentication realm. This parameter cannot be used with either id or name or when owner flag is set to true.

      API name: realm_name

    • username

      @Nullable public final String username()
      The username of a user. This parameter cannot be used with either id or name or when owner flag is set to true.

      API name: username

    • withLimitedBy

      @Nullable public final Boolean withLimitedBy()
      Return the snapshot of the owner user's role descriptors associated with the API key. An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors.

      API name: with_limited_by