invalidate-api-key.asciidoc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --
  2. :api: invalidate-api-key
  3. :request: InvalidateApiKeyRequest
  4. :response: InvalidateApiKeyResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Invalidate API Key API
  8. API Key(s) can be invalidated using this API.
  9. [id="{upid}-{api}-request"]
  10. ==== Invalidate API Key Request
  11. The +{request}+ supports invalidating
  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. ===== Specific API key by API key id
  17. ["source","java",subs="attributes,callouts,macros"]
  18. --------------------------------------------------
  19. include-tagged::{doc-tests-file}[invalidate-api-key-id-request]
  20. --------------------------------------------------
  21. ===== Specific API key by API key name
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[invalidate-api-key-name-request]
  25. --------------------------------------------------
  26. ===== All API keys for realm
  27. ["source","java",subs="attributes,callouts,macros"]
  28. --------------------------------------------------
  29. include-tagged::{doc-tests-file}[invalidate-realm-api-keys-request]
  30. --------------------------------------------------
  31. ===== All API keys for user
  32. ["source","java",subs="attributes,callouts,macros"]
  33. --------------------------------------------------
  34. include-tagged::{doc-tests-file}[invalidate-user-api-keys-request]
  35. --------------------------------------------------
  36. ===== All API key for user in realm
  37. ["source","java",subs="attributes,callouts,macros"]
  38. --------------------------------------------------
  39. include-tagged::{doc-tests-file}[invalidate-user-realm-api-keys-request]
  40. --------------------------------------------------
  41. include::../execution.asciidoc[]
  42. [id="{upid}-{api}-response"]
  43. ==== Invalidate API Key Response
  44. The returned +{response}+ contains the information regarding the API keys that the request
  45. invalidated.
  46. `invalidatedApiKeys`:: Available using `getInvalidatedApiKeys` lists the API keys
  47. that this request invalidated.
  48. `previouslyInvalidatedApiKeys`:: Available using `getPreviouslyInvalidatedApiKeys` lists the API keys
  49. that this request attempted to invalidate
  50. but were already invalid.
  51. `errors`:: Available using `getErrors` contains possible errors that were encountered while
  52. attempting to invalidate API keys.
  53. ["source","java",subs="attributes,callouts,macros"]
  54. --------------------------------------------------
  55. include-tagged::{doc-tests-file}[{api}-response]
  56. --------------------------------------------------