Class GetServiceCredentialsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.GetServiceCredentialsRequest
Get service account credentials.
To use this API, you must have at least the read_security
cluster privilege (or a greater privilege such as
manage_service_account
or manage_security
).
The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster.
NOTE: For tokens backed by the service_tokens
file, the API
collects them from all nodes of the cluster. Tokens with the same name from
different nodes are assumed to be the same token and are only counted once
towards the total number of service tokens.
- 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.get_service_credentials
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Required - The name of the namespace.static GetServiceCredentialsRequest
final String
service()
Required - The service name.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<GetServiceCredentialsRequest,GetServiceCredentialsResponse, _ENDPOINTErrorResponse> Endpoint "security.get_service_credentials
".
-
-
Method Details
-
of
-
namespace
Required - The name of the namespace.API name:
namespace
-
service
Required - The service name.API name:
service
-