IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Clear privileges cache APIedit
Evicts privileges from the native application privilege cache. The cache is also automatically cleared for applications that have their privileges updated.
Requestedit
POST /_security/privilege/<application>/_clear_cache
Prerequisitesedit
-
To use this API, you must have at least the
manage_security
cluster privilege.
Descriptionedit
For more information about the native realm, see Realms and Native user authentication.
Path parametersedit
-
application
- (string) The name of the application. If omitted, all entries are evicted from the cache.
Examplesedit
The clear privileges cache API evicts privileges from the native application privilege cache.
For example, to clear the cache for myapp
:
POST /_security/privilege/myapp/_clear_cache