To use this API, you must have one of the following privileges:
manage_security cluster privilege (or a greater privilege such as all).manage_securityThe name of the application. Application privileges are always associated with exactly one application.
The name of the privilege.
DELETE /_security/privilege/myapp/read
resp = client.security.delete_privileges(
application="myapp",
name="read",
)
const response = await client.security.deletePrivileges({
application: "myapp",
name: "read",
});
response = client.security.delete_privileges(
application: "myapp",
name: "read"
)
$resp = $client->security()->deletePrivileges([
"application" => "myapp",
"name" => "read",
]);
curl -X DELETE -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_security/privilege/myapp/read"
{
"myapp": {
"read": {
"found" : true
}
}
}