Clear the user cache
Evict users from the user cache. You can completely clear the cache or evict specific users.
Path parameters
-
Comma-separated list of realms to clear
Query parameters
-
usernames array[string]
Comma-separated list of usernames to clear from the cache
POST
/_security/realm/{realms}/_clear_cache
curl \
-X POST http://api.example.com/_security/realm/{realms}/_clear_cache
Response examples (200)
{
"_nodes": {
"failures": [
{
"type": "string",
"reason": "string",
"stack_trace": "string",
"caused_by": {},
"root_cause": [
{}
],
"suppressed": [
{}
]
}
],
"total": 42.0,
"successful": 42.0,
"failed": 42.0
},
"cluster_name": "string",
"nodes": {
"additionalProperty1": {
"name": "string"
},
"additionalProperty2": {
"name": "string"
}
}
}