get-api-key.asciidoc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --
  2. :api: get-api-key
  3. :request: GetApiKeyRequest
  4. :response: GetApiKeyResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Get API Key information API
  8. API Key(s) information can be retrieved using this API.
  9. [id="{upid}-{api}-request"]
  10. ==== Get API Key Request
  11. The +{request}+ supports retrieving API key information for
  12. . A specific API key
  13. . All API keys for a specific realm
  14. . All API keys for a specific user
  15. . All API keys for a specific user in a specific realm
  16. . A specific key or all API keys owned by the current authenticated user
  17. ===== Retrieve a specific API key by its id
  18. ["source","java",subs="attributes,callouts,macros"]
  19. --------------------------------------------------
  20. include-tagged::{doc-tests-file}[get-api-key-id-request]
  21. --------------------------------------------------
  22. ===== Retrieve a specific API key by its name
  23. ["source","java",subs="attributes,callouts,macros"]
  24. --------------------------------------------------
  25. include-tagged::{doc-tests-file}[get-api-key-name-request]
  26. --------------------------------------------------
  27. ===== Retrieve all API keys for given realm
  28. ["source","java",subs="attributes,callouts,macros"]
  29. --------------------------------------------------
  30. include-tagged::{doc-tests-file}[get-realm-api-keys-request]
  31. --------------------------------------------------
  32. ===== Retrieve all API keys for a given user
  33. ["source","java",subs="attributes,callouts,macros"]
  34. --------------------------------------------------
  35. include-tagged::{doc-tests-file}[get-user-api-keys-request]
  36. --------------------------------------------------
  37. ===== Retrieve all API keys for given user in a realm
  38. ["source","java",subs="attributes,callouts,macros"]
  39. --------------------------------------------------
  40. include-tagged::{doc-tests-file}[get-user-realm-api-keys-request]
  41. --------------------------------------------------
  42. ===== Retrieve all API keys for the current authenticated user
  43. ["source","java",subs="attributes,callouts,macros"]
  44. --------------------------------------------------
  45. include-tagged::{doc-tests-file}[get-api-keys-owned-by-authenticated-user-request]
  46. --------------------------------------------------
  47. include::../execution.asciidoc[]
  48. [id="{upid}-{api}-response"]
  49. ==== Get API Key information API Response
  50. The returned +{response}+ contains the information regarding the API keys that were
  51. requested.
  52. `api_keys`:: Available using `getApiKeyInfos`, contains list of API keys that were retrieved for this request.
  53. ["source","java",subs="attributes,callouts,macros"]
  54. --------------------------------------------------
  55. include-tagged::{doc-tests-file}[{api}-response]
  56. --------------------------------------------------