Search + K

Command Palette

Search for a command to run...

Sign In

Clear the roles cache

POST /_security/role/{name}/_clear_cache
Copy endpoint

Evict roles from the native role cache.

Required authorization

  • Cluster privileges: manage_security

Parameters

path Path Parameters

Name Type
name 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.

type TypesNames = type TypesName = string | type TypesName = string[]

Responses

200 application/json
{ _nodes: TypesNodeStatistics

Contains statistics about the number of nodes selected by the request.

interface TypesNodeStatistics {
failures?: TypesErrorCause[];
total: number;
successful: number;
failed: number;
}
;cluster_name: TypesName
type TypesName = string
;nodes: { }; }