Check user privileges | Elasticsearch API documentation (original) (raw)
Dismiss highlight Show more
application/json
Body Required
- Hide application attributes Show application attributes object
- The name of the application.
- A list of the privileges that you want to check for the specified resources. It may be either application privilege names or the names of actions that are granted by those privileges
- A list of resource names against which the privileges should be checked.
- A list of the cluster privileges that you want to check.
- Hide index attributes Show index attributes object
- names
string | array[string] Required - A list of the privileges that you want to check for the specified indices.
- This needs to be set to
true
(default isfalse
) if using wildcards or regexps for patterns that cover restricted indices. Implicitly, restricted indices do not match index patterns because restricted indices usually have limited privileges and including them in pattern tests would render most such tests false. If restricted indices are explicitly included in the names list, privileges will be checked against them regardless of the value ofallow_restricted_indices
.
- names
Responses
- 200 application/json
Hide response attributes Show response attributes object- Hide application attribute Show application attribute object
* *
object Additional properties
Hide * attribute Show * attribute object
* *
object Additional properties
Hide * attribute Show * attribute object
* *
boolean Additional properties - Hide cluster attribute Show cluster attribute object
* *
boolean Additional properties - Hide index attribute Show index attribute object
* *
object Additional properties
Hide * attribute Show * attribute object
* *
boolean Additional properties
- Hide application attribute Show application attribute object