Class ClearCachedRealmsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.ClearCachedRealmsRequest
Clear the user cache.
Evict users from the user cache. You can completely clear the cache or evict specific users.
User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. There are realm settings that you can use to configure the user cache. For more information, refer to the documentation about controlling the user cache.
- 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.clear_cached_realms
". -
Method Summary
Modifier and TypeMethodDescriptionstatic ClearCachedRealmsRequest
realms()
Required - A comma-separated list of realms.A comma-separated list of the users to clear from the cache.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<ClearCachedRealmsRequest,ClearCachedRealmsResponse, _ENDPOINTErrorResponse> Endpoint "security.clear_cached_realms
".
-
-
Method Details
-
of
public static ClearCachedRealmsRequest of(Function<ClearCachedRealmsRequest.Builder, ObjectBuilder<ClearCachedRealmsRequest>> fn) -
realms
Required - A comma-separated list of realms. To clear all realms, use an asterisk (*
). It does not support other wildcard patterns.API name:
realms
-
usernames
A comma-separated list of the users to clear from the cache. If you do not specify this parameter, the API evicts all users from the user cache.API name:
usernames
-