post-pause-follow.asciidoc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. [role="xpack"]
  2. [[ccr-post-pause-follow]]
  3. === Pause follower API
  4. ++++
  5. <titleabbrev>Pause follower</titleabbrev>
  6. ++++
  7. .New API reference
  8. [sidebar]
  9. --
  10. For the most up-to-date API details, refer to {api-es}/group/endpoint-ccr[Cross-cluster replication APIs].
  11. --
  12. Pauses a <<xpack-ccr,{ccr}>> follower index.
  13. [[ccr-post-pause-follow-request]]
  14. ==== {api-request-title}
  15. //////////////////////////
  16. [source,console]
  17. --------------------------------------------------
  18. PUT /follower_index/_ccr/follow?wait_for_active_shards=1
  19. {
  20. "remote_cluster" : "remote_cluster",
  21. "leader_index" : "leader_index"
  22. }
  23. --------------------------------------------------
  24. // TESTSETUP
  25. // TEST[setup:remote_cluster_and_leader_index]
  26. //////////////////////////
  27. [source,console]
  28. --------------------------------------------------
  29. POST /<follower_index>/_ccr/pause_follow
  30. --------------------------------------------------
  31. // TEST[s/<follower_index>/follower_index/]
  32. [[ccr-post-pause-follow-prereqs]]
  33. ==== {api-prereq-title}
  34. * If the {es} {security-features} are enabled, you must have `manage_ccr` cluster
  35. privileges on the cluster that contains the follower index. For more information,
  36. see <<security-privileges>>.
  37. [[ccr-post-pause-follow-desc]]
  38. ==== {api-description-title}
  39. This API pauses a follower index. When this API returns, the follower index will
  40. not fetch any additional operations from the leader index. You can resume
  41. following with the <<ccr-post-resume-follow,resume follower API>>. Pausing and
  42. resuming a follower index can be used to change the configuration of the
  43. following task.
  44. [[ccr-post-pause-follow-path-parms]]
  45. ==== {api-path-parms-title}
  46. `<follower_index>`::
  47. (Required, string) The name of the follower index.
  48. [[ccr-post-pause-follow-query-params]]
  49. ==== {api-query-parms-title}
  50. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=master-timeout]
  51. [[ccr-post-pause-follow-examples]]
  52. ==== {api-examples-title}
  53. This example pauses a follower index named `follower_index`:
  54. [source,console]
  55. --------------------------------------------------
  56. POST /follower_index/_ccr/pause_follow
  57. --------------------------------------------------
  58. // TEST
  59. The API returns the following result:
  60. [source,console-result]
  61. --------------------------------------------------
  62. {
  63. "acknowledged" : true
  64. }
  65. --------------------------------------------------