delete-privileges.asciidoc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --
  2. :api: delete-privileges
  3. :request: DeletePrivilegesRequest
  4. :response: DeletePrivilegesResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Delete Privileges API
  9. This API can be used to delete application privileges.
  10. [id="{upid}-{api}-request"]
  11. ==== Delete Application Privileges Request
  12. A +{request}+ has two arguments
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> the name of application
  18. <2> the name(s) of the privileges to delete that belong to the given application
  19. include::../execution.asciidoc[]
  20. [id="{upid}-{api}-response"]
  21. ==== Delete Application Privileges Response
  22. The returned +{response}+ allows to retrieve information about the executed
  23. operation as follows:
  24. ["source","java",subs="attributes,callouts,macros"]
  25. --------------------------------------------------
  26. include-tagged::{doc-tests-file}[{api}-response]
  27. --------------------------------------------------
  28. <1> the name of the application
  29. <2> whether the given privilege was found and deleted