All methods and paths for this operation:
To use this API, you must have one of the following privileges:
read_security cluster privilege (or a greater privilege such as manage_security or all).read_securityThe name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications.
The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application.
GET /_security/privilege/myapp/read
resp = client.security.get_privileges(
application="myapp",
name="read",
)
const response = await client.security.getPrivileges({
application: "myapp",
name: "read",
});
response = client.security.get_privileges(
application: "myapp",
name: "read"
)
$resp = $client->security()->getPrivileges([
"application" => "myapp",
"name" => "read",
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_security/privilege/myapp/read"
{
"myapp": {
"read": {
"application": "myapp",
"name": "read",
"actions": [
"data:read/*",
"action:login"
],
"metadata": {
"description": "Read access to myapp"
}
}
}
}