put-privileges.asciidoc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --
  2. :api: put-privileges
  3. :request: PutPrivilegesRequest
  4. :response: PutPrivilegesResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Put Privileges API
  8. Application privileges can be created or updated using this API.
  9. [id="{upid}-{api}-request"]
  10. ==== Put Privileges Request
  11. A +{request}+ contains list of application privileges that
  12. need to be created or updated. Each application privilege
  13. consists of an application name, application privilege,
  14. set of actions and optional metadata.
  15. ["source","java",subs="attributes,callouts,macros"]
  16. --------------------------------------------------
  17. include-tagged::{doc-tests-file}[{api}-request]
  18. --------------------------------------------------
  19. include::../execution.asciidoc[]
  20. [id="{upid}-{api}-response"]
  21. ==== Put Privileges Response
  22. The returned +{response}+ contains the information about the status
  23. for each privilege present in the +{request}+. The status would be
  24. `true` if the privilege was created, `false` if the privilege was updated.
  25. ["source","java",subs="attributes,callouts,macros"]
  26. --------------------------------------------------
  27. include-tagged::{doc-tests-file}[{api}-response]
  28. --------------------------------------------------
  29. <1> The response contains the status for given application name and
  30. privilege name. The status would be `true` if the privilege was created,
  31. `false` if the privilege was updated.