Class CreateServiceTokenRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.CreateServiceTokenRequest
Creates a service accounts token for access without requiring basic
authentication.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionEndpoint "security.create_service_token". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringname()An identifier for the token namefinal StringRequired - An identifier for the namespacestatic CreateServiceTokenRequestfinal Refreshrefresh()Iftruethen refresh the affected shards to make this operation visible to search, ifwait_for(the default) then wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.final Stringservice()Required - An identifier for the service nameMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<CreateServiceTokenRequest,CreateServiceTokenResponse, _ENDPOINTErrorResponse> Endpoint "security.create_service_token".
-
-
Method Details
-
of
public static CreateServiceTokenRequest of(Function<CreateServiceTokenRequest.Builder, ObjectBuilder<CreateServiceTokenRequest>> fn) -
name
An identifier for the token nameAPI name:
name -
namespace
Required - An identifier for the namespaceAPI name:
namespace -
refresh
Iftruethen refresh the affected shards to make this operation visible to search, ifwait_for(the default) then wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.API name:
refresh -
service
Required - An identifier for the service nameAPI name:
service
-