post-pause-follow.asciidoc 1.8 KB

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