Get application privileges Added in 6.4.0
To use this API, you must have one of the following privileges:
- The
read_security
cluster privilege (or a greater privilege such asmanage_security
orall
). - The "Manage Application Privileges" global privilege for the application being referenced in the request.
Path parameters
-
The 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/{application}/{name}
curl \
--request GET http://api.example.com/_security/privilege/{application}/{name}
Response examples (200)
{
"additionalProperty1": {
"additionalProperty1": {
"actions": [
"string"
],
"application": "string",
"name": "string",
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
}
},
"additionalProperty2": {
"actions": [
"string"
],
"application": "string",
"name": "string",
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
}
}
},
"additionalProperty2": {
"additionalProperty1": {
"actions": [
"string"
],
"application": "string",
"name": "string",
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
}
},
"additionalProperty2": {
"actions": [
"string"
],
"application": "string",
"name": "string",
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
}
}
}
}