get-builtin-privileges.asciidoc 843 B

123456789101112131415161718192021222324252627282930
  1. --
  2. :api: get-builtin-privileges
  3. :request: GetBuiltinPrivilegesRequest
  4. :response: GetBuiltinPrivilegesResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Get Builtin Privileges API
  9. Retrieves the list of cluster privileges and index privileges that are
  10. available in this version of {es}.
  11. include::../execution-no-req.asciidoc[]
  12. [id="{upid}-{api}-response"]
  13. ==== Get Builtin Privileges Response
  14. The returned +{response}+ contains the following properties
  15. `clusterPrivileges`::
  16. A `Set` of all _cluster_ privileges that are understood by this node.
  17. `indexPrivileges`::
  18. A `Set` of all _index_ privileges that are understood by this node.
  19. ["source","java",subs="attributes,callouts,macros"]
  20. --------------------------------------------------
  21. include-tagged::{doc-tests-file}[{api}-response]
  22. --------------------------------------------------