post-pause-follow.asciidoc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[ccr-post-pause-follow]]
  4. === Pause Follower API
  5. ++++
  6. <titleabbrev>Pause Follower</titleabbrev>
  7. ++++
  8. Pauses a follower index.
  9. ==== Description
  10. This API pauses a follower index. When this API returns, the follower index will
  11. not fetch any additional operations from the leader index. You can resume
  12. following with the <<ccr-post-resume-follow,resume follower API>>. Pausing and
  13. resuming a follower index can be used to change the configuration of the
  14. following task.
  15. ==== Request
  16. //////////////////////////
  17. [source,js]
  18. --------------------------------------------------
  19. PUT /follower_index/_ccr/follow
  20. {
  21. "remote_cluster" : "remote_cluster",
  22. "leader_index" : "leader_index"
  23. }
  24. --------------------------------------------------
  25. // CONSOLE
  26. // TESTSETUP
  27. // TEST[setup:remote_cluster_and_leader_index]
  28. //////////////////////////
  29. [source,js]
  30. --------------------------------------------------
  31. POST /<follower_index>/_ccr/pause_follow
  32. --------------------------------------------------
  33. // CONSOLE
  34. // TEST[s/<follower_index>/follower_index/]
  35. ==== Path Parameters
  36. `follower_index` (required)::
  37. (string) the name of the follower index
  38. ==== Example
  39. This example pauses a follower index named `follower_index`:
  40. [source,js]
  41. --------------------------------------------------
  42. POST /follower_index/_ccr/pause_follow
  43. --------------------------------------------------
  44. // CONSOLE
  45. // TEST
  46. The API returns the following result:
  47. [source,js]
  48. --------------------------------------------------
  49. {
  50. "acknowledged" : true
  51. }
  52. --------------------------------------------------
  53. // TESTRESPONSE