Evicts a subset of all entries from the API key cache. The cache is also automatically cleared on state changes of the security index.
For more information about API keys, see Create API keys, Get API key information, and Invalidate API key.
-
<ids>
-
(Required, string)
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.
The clear API key cache API evicts entries from the API key cache.
For example, to clear the entry of API key with ID yVGMr3QByxdh1MSaicYx
.
POST /_security/api_key/yVGMr3QByxdh1MSaicYx/_clear_cache
Specify multiple API keys as a comma-separated list.
POST /_security/api_key/yVGMr3QByxdh1MSaicYx,YoiMaqREw0YVpjn40iMg/_clear_cache
To clear all entries from the API key cache, use *
.
POST /_security/api_key/*/_clear_cache