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.
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static GetApiKeyRequest of​(java.util.function.Function<GetApiKeyRequest.Builder,​ObjectBuilder<GetApiKeyRequest>> fn)
    • id

      @Nullable public final java.lang.String id()
      API key id of the API key to be retrieved

      API name: id

    • name

      @Nullable public final java.lang.String name()
      API key name of the API key to be retrieved

      API name: name

    • owner

      @Nullable public final java.lang.Boolean owner()
      flag to query API keys owned by the currently authenticated user

      API name: owner

    • realmName

      @Nullable public final java.lang.String realmName()
      realm name of the user who created this API key to be retrieved

      API name: realm_name

    • username

      @Nullable public final java.lang.String username()
      user name of the user who created this API key to be retrieved

      API name: username

    • withLimitedBy

      @Nullable public final java.lang.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