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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateServiceTokenRequest.Builder
Builder forCreateServiceTokenRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static Endpoint<CreateServiceTokenRequest,CreateServiceTokenResponse,ErrorResponse>
_ENDPOINT
Endpoint "security.create_service_token
". -
Method Summary
Modifier and Type Method Description java.lang.String
name()
An identifier for the token namejava.lang.String
namespace()
Required - An identifier for the namespacestatic CreateServiceTokenRequest
of(java.util.function.Function<CreateServiceTokenRequest.Builder,ObjectBuilder<CreateServiceTokenRequest>> fn)
Refresh
refresh()
Iftrue
then 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, iffalse
then do nothing with refreshes.java.lang.String
service()
Required - An identifier for the service nameMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_ENDPOINT
public static final Endpoint<CreateServiceTokenRequest,CreateServiceTokenResponse,ErrorResponse> _ENDPOINTEndpoint "security.create_service_token
".
-
-
Method Details
-
of
public static CreateServiceTokenRequest of(java.util.function.Function<CreateServiceTokenRequest.Builder,ObjectBuilder<CreateServiceTokenRequest>> fn) -
name
@Nullable public final java.lang.String name()An identifier for the token nameAPI name:
name
-
namespace
public final java.lang.String namespace()Required - An identifier for the namespaceAPI name:
namespace
-
refresh
Iftrue
then 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, iffalse
then do nothing with refreshes.API name:
refresh
-
service
public final java.lang.String service()Required - An identifier for the service nameAPI name:
service
-