{
  "security.get_privileges": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-privileges",
      "description": "Get application privileges"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_security/privilege",
          "methods": [
            "GET"
          ]
        },
        {
          "path": "/_security/privilege/{application}",
          "methods": [
            "GET"
          ],
          "parts": {
            "application": {
              "type": "string",
              "description": "Application name"
            }
          }
        },
        {
          "path": "/_security/privilege/{application}/{name}",
          "methods": [
            "GET"
          ],
          "parts": {
            "application": {
              "type": "string",
              "description": "Application name"
            },
            "name": {
              "type": "list",
              "description": "Comma-separated list of privilege names. If you do not specify this parameter, the API returns information about all privileges for the requested application."
            }
          }
        }
      ]
    }
  }
}
