post-pause-follow.asciidoc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. [[ccr-post-pause-follow-request]]
  10. ==== {api-request-title}
  11. //////////////////////////
  12. [source,js]
  13. --------------------------------------------------
  14. PUT /follower_index/_ccr/follow?wait_for_active_shards=1
  15. {
  16. "remote_cluster" : "remote_cluster",
  17. "leader_index" : "leader_index"
  18. }
  19. --------------------------------------------------
  20. // CONSOLE
  21. // TESTSETUP
  22. // TEST[setup:remote_cluster_and_leader_index]
  23. //////////////////////////
  24. [source,js]
  25. --------------------------------------------------
  26. POST /<follower_index>/_ccr/pause_follow
  27. --------------------------------------------------
  28. // CONSOLE
  29. // TEST[s/<follower_index>/follower_index/]
  30. [[ccr-post-pause-follow-prereqs]]
  31. ==== {api-prereq-title}
  32. * If the {es} {security-features} are enabled, you must have `manage_ccr` cluster
  33. privileges on the cluster that contains the follower index. For more information,
  34. see {stack-ov}/security-privileges.html[Security privileges].
  35. [[ccr-post-pause-follow-desc]]
  36. ==== {api-description-title}
  37. This API pauses a follower index. When this API returns, the follower index will
  38. not fetch any additional operations from the leader index. You can resume
  39. following with the <<ccr-post-resume-follow,resume follower API>>. Pausing and
  40. resuming a follower index can be used to change the configuration of the
  41. following task.
  42. [[ccr-post-pause-follow-path-parms]]
  43. ==== {api-path-parms-title}
  44. `<follower_index>` (Required)::
  45. (string) The name of the follower index.
  46. [[ccr-post-pause-follow-examples]]
  47. ==== {api-examples-title}
  48. This example pauses a follower index named `follower_index`:
  49. [source,js]
  50. --------------------------------------------------
  51. POST /follower_index/_ccr/pause_follow
  52. --------------------------------------------------
  53. // CONSOLE
  54. // TEST
  55. The API returns the following result:
  56. [source,js]
  57. --------------------------------------------------
  58. {
  59. "acknowledged" : true
  60. }
  61. --------------------------------------------------
  62. // TESTRESPONSE