Clear the roles cache
Evict roles from the native role cache.
Path parameters
-
name
string | array[string] Required A comma-separated list of roles to evict from the role cache. To evict all roles, use an asterisk (
*
). It does not support other wildcard patterns.
POST
/_security/role/{name}/_clear_cache
curl \
--request POST 'http://api.example.com/_security/role/{name}/_clear_cache' \
--header "Authorization: $API_KEY"
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"
}
}
}