Class ClearCachedServiceTokensRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.ClearCachedServiceTokensRequest
Clear service account token caches.
Evict a subset of all entries from the service account token caches. Two
separate caches exist for service account tokens: one cache for tokens backed
by the service_tokens
file, and another for tokens backed by the
.security
index. This API clears matching entries from both
caches.
The cache for service account tokens backed by the .security
index is cleared automatically on state changes of the security index. The
cache for tokens backed by the service_tokens
file is cleared
automatically on file changes.
- 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 TypeFieldDescriptionstatic final Endpoint<ClearCachedServiceTokensRequest,
ClearCachedServiceTokensResponse, ErrorResponse> Endpoint "security.clear_cached_service_tokens
". -
Method Summary
Modifier and TypeMethodDescriptionname()
Required - A comma-separated list of token names to evict from the service account token caches.final String
Required - The namespace, which is a top-level grouping of service accounts.of
(Function<ClearCachedServiceTokensRequest.Builder, ObjectBuilder<ClearCachedServiceTokensRequest>> fn) final String
service()
Required - The name of the service, which must be unique within its namespace.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<ClearCachedServiceTokensRequest,ClearCachedServiceTokensResponse, _ENDPOINTErrorResponse> Endpoint "security.clear_cached_service_tokens
".
-
-
Method Details
-
of
-
name
Required - A comma-separated list of token names to evict from the service account token caches. Use a wildcard (*
) to evict all tokens that belong to a service account. It does not support other wildcard patterns.API name:
name
-
namespace
Required - The namespace, which is a top-level grouping of service accounts.API name:
namespace
-
service
Required - The name of the service, which must be unique within its namespace.API name:
service
-