clear-api-key-cache.asciidoc 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. --
  2. :api: clear-api-key-cache
  3. :request: ClearApiKeyCacheRequest
  4. :response: ClearSecurityCacheResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Clear API Key Cache API
  9. [id="{upid}-{api}-request"]
  10. ==== Clear API Key Cache Request
  11. A +{request}+ supports clearing API key cache for the given IDs.
  12. It can also clear the entire cache if no ID is specified.
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> the IDs(s) for the API keys to be evicted from the cache
  18. include::../execution.asciidoc[]
  19. [id="{upid}-{api}-response"]
  20. ==== Clear API Key Cache Response
  21. The returned +{response}+ allows to retrieve information about where the cache was cleared.
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-response]
  25. --------------------------------------------------
  26. <1> the list of nodes that the cache was cleared on