Clear the API key cache
- POST /_security/api_key/{ids}/_clear_cache
Evict a subset of all entries from the API key cache. The cache is also automatically cleared on state changes of the security index.
- Cluster privileges:
manage_security
Path Parameters
-
idsId | Idrequired -
Comma-separated list of API key IDs to evict from the API key cache. To evict all API keys, use
*. Does not support other wildcard patterns.
Response
application/json
-
_nodesNodeStatisticsrequired -
failuresErrorCause -
typestringrequired -
The type of error
-
reasonstringnullable -
A human-readable explanation of the error, in English.
-
stack_tracestring -
The server stack trace. Present only if the
error_trace=trueparameter was sent with the request. -
caused_byErrorCause -
root_causeErrorCause -
suppressedErrorCause -
totalnumberrequired -
Total number of nodes selected by the request.
-
successfulnumberrequired -
Number of nodes that responded successfully to the request.
-
failednumberrequired -
Number of nodes that rejected the request or failed to respond. If this value is not 0, a reason for the rejection or failure is included in the response.
-
cluster_namestring Namerequired