get-api-key.asciidoc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. ===== Retrieve a specific API key by its id
  17. ["source","java",subs="attributes,callouts,macros"]
  18. --------------------------------------------------
  19. include-tagged::{doc-tests-file}[get-api-key-id-request]
  20. --------------------------------------------------
  21. ===== Retrieve a specific API key by its name
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[get-api-key-name-request]
  25. --------------------------------------------------
  26. ===== Retrieve all API keys for given realm
  27. ["source","java",subs="attributes,callouts,macros"]
  28. --------------------------------------------------
  29. include-tagged::{doc-tests-file}[get-realm-api-keys-request]
  30. --------------------------------------------------
  31. ===== Retrieve all API keys for a given user
  32. ["source","java",subs="attributes,callouts,macros"]
  33. --------------------------------------------------
  34. include-tagged::{doc-tests-file}[get-user-api-keys-request]
  35. --------------------------------------------------
  36. ===== Retrieve all API keys for given user in a realm
  37. ["source","java",subs="attributes,callouts,macros"]
  38. --------------------------------------------------
  39. include-tagged::{doc-tests-file}[get-user-realm-api-keys-request]
  40. --------------------------------------------------
  41. include::../execution.asciidoc[]
  42. [id="{upid}-{api}-response"]
  43. ==== Get API Key information API Response
  44. The returned +{response}+ contains the information regarding the API keys that were
  45. requested.
  46. `api_keys`:: Available using `getApiKeyInfos`, contains list of API keys that were retrieved for this request.
  47. ["source","java",subs="attributes,callouts,macros"]
  48. --------------------------------------------------
  49. include-tagged::{doc-tests-file}[{api}-response]
  50. --------------------------------------------------