Path parameters
-
The name of the role. You can specify multiple roles as a comma-separated list. If you do not specify this parameter, the API returns information about all roles.
Responses
-
200 application/json
Hide response attribute Show response attribute object
-
Additional properties are allowed.
Hide * attributes Show * attributes object
-
Hide indices attributes Show indices attributes object
-
field_security object
Additional properties are allowed.
names string | array[string]
A list of indices (or index name patterns) to which the permissions in this entry apply.
-
The index level privileges that owners of the role have on the specified indices.
query string | object
While creating or updating a role you can provide either a JSON structure or a string to the API. However, the response provided by Elasticsearch will only be string with a json-as-text content.
Since this is embedded in
IndicesPrivileges
, the same structure is used for clarity in both contexts.
-
-
Hide metadata attribute Show metadata attribute object
-
Additional properties are allowed.
-
-
transient_metadata object
Hide transient_metadata attribute Show transient_metadata attribute object
-
Additional properties are allowed.
-
-
Hide applications attributes Show applications attributes object
-
The name of the application to which this entry applies.
-
A list of strings, where each element is the name of an application privilege or action.
-
A list resources to which the privileges are applied.
-
-
role_templates array[object]
Hide role_templates attributes Show role_templates attributes object
-
format string
Values are
string
orjson
. -
Additional properties are allowed.
Hide template attributes Show template attributes object
-
source string
The script source.
-
id string
-
params object
Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time.
Hide params attribute Show params attribute object
-
Additional properties are allowed.
-
-
options object
Hide options attribute Show options attribute object
-
-
-
global object
-
curl \
-X GET http://api.example.com/_security/role/{name}