Clear the privileges cache Added in 7.9.0
Evict privileges from the native application privilege cache. The cache is also automatically cleared for applications that have their privileges updated.
Path parameters
-
A comma-separated list of application names
POST /_security/privilege/{application}/_clear_cache
curl \
-X POST http://api.example.com/_security/privilege/{application}/_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"
}
}
}