close_index.asciidoc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --
  2. :api: close-index
  3. :request: CloseIndexRequest
  4. :response: CloseIndexResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Close Index API
  8. [id="{upid}-{api}-request"]
  9. ==== Close Index Request
  10. A +{request}+ requires an `index` argument:
  11. ["source","java",subs="attributes,callouts,macros"]
  12. --------------------------------------------------
  13. include-tagged::{doc-tests-file}[{api}-request]
  14. --------------------------------------------------
  15. <1> The index to close
  16. ==== Optional arguments
  17. The following arguments can optionally be provided:
  18. ["source","java",subs="attributes,callouts,macros"]
  19. --------------------------------------------------
  20. include-tagged::{doc-tests-file}[{api}-request-timeout]
  21. --------------------------------------------------
  22. <1> Timeout to wait for the all the nodes to acknowledge the index is closed
  23. as a `TimeValue`
  24. <2> Timeout to wait for the all the nodes to acknowledge the index is closed
  25. as a `String`
  26. ["source","java",subs="attributes,callouts,macros"]
  27. --------------------------------------------------
  28. include-tagged::{doc-tests-file}[{api}-request-masterTimeout]
  29. --------------------------------------------------
  30. <1> Timeout to connect to the master node as a `TimeValue`
  31. <2> Timeout to connect to the master node as a `String`
  32. ["source","java",subs="attributes,callouts,macros"]
  33. --------------------------------------------------
  34. include-tagged::{doc-tests-file}[{api}-request-indicesOptions]
  35. --------------------------------------------------
  36. <1> Setting `IndicesOptions` controls how unavailable indices are resolved and
  37. how wildcard expressions are expanded
  38. include::../execution.asciidoc[]
  39. [id="{upid}-{api}-response"]
  40. ==== Close Index Response
  41. The returned +{response}+ allows to retrieve information about the
  42. executed operation as follows:
  43. ["source","java",subs="attributes,callouts,macros"]
  44. --------------------------------------------------
  45. include-tagged::{doc-tests-file}[{api}-response]
  46. --------------------------------------------------
  47. <1> Indicates whether all of the nodes have acknowledged the request