Spec-Zone.ru › Elasticsearch 7
›Elasticsearch Guide [7.17] ›REST APIs ›Security APIs

Clear privileges cache API

Evicts privileges from the native application privilege cache. The cache is also automatically cleared for applications that have their privileges updated.

Request

POST /_security/privilege/<applications>/_clear_cache

Prerequisites

  • To use this API, you must have at least the manage_security cluster privilege.

Description

For more information about the native realm, see Realms and Native user authentication.

Path parameters

<applications>
(Required, string) Comma-separated list of applications to clear. To clear all applications, use *. Does not support other wildcard patterns.

Examples

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

Specify multiple applications as a comma-separated list.

POST /_security/privilege/myapp,my-other-app/_clear_cache

To clear the cache for all applications, use *.

POST /_security/privilege/*/_clear_cache

© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-api-clear-privilege-cache.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API