Class CreateServiceTokenRequest

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

public class CreateServiceTokenRequest
extends RequestBase
Creates a service accounts token for access without requiring basic authentication.
See Also:
API specification
  • Field Details

  • Method Details

    • of

    • name

      @Nullable public final java.lang.String name()
      An identifier for the token name

      API name: name

    • namespace

      public final java.lang.String namespace()
      Required - An identifier for the namespace

      API name: namespace

    • refresh

      @Nullable public final Refresh refresh()
      If true then refresh the affected shards to make this operation visible to search, if wait_for (the default) then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes.

      API name: refresh

    • service

      public final java.lang.String service()
      Required - An identifier for the service name

      API name: service