post-unfollow.asciidoc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[ccr-post-unfollow]]
  4. === Unfollow API
  5. ++++
  6. <titleabbrev>Unfollow</titleabbrev>
  7. ++++
  8. Converts a follower index to a regular index.
  9. [[ccr-post-unfollow-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. POST /follower_index/_ccr/pause_follow
  20. POST /follower_index/_close
  21. --------------------------------------------------
  22. // CONSOLE
  23. // TESTSETUP
  24. // TEST[setup:remote_cluster_and_leader_index]
  25. //////////////////////////
  26. [source,js]
  27. --------------------------------------------------
  28. POST /<follower_index>/_ccr/unfollow
  29. --------------------------------------------------
  30. // CONSOLE
  31. // TEST[s/<follower_index>/follower_index/]
  32. [[ccr-post-unfollow-prereqs]]
  33. ==== {api-prereq-title}
  34. * If the {es} {security-features} are enabled, you must have `manage_follow_index`
  35. index privileges for the follower index. For more information, see
  36. {stack-ov}/security-privileges.html[Security privileges].
  37. [[ccr-post-unfollow-desc]]
  38. ==== {api-description-title}
  39. This API stops the following task associated with a follower index and removes
  40. index metadata and settings associated with {ccr}. This enables the index to
  41. treated as a regular index. The follower index must be paused and closed before
  42. invoking the unfollow API.
  43. NOTE: Currently {ccr} does not support converting an existing regular index to a
  44. follower index. Converting a follower index to a regular index is an
  45. irreversible operation.
  46. [[ccr-post-unfollow-path-parms]]
  47. ==== {api-path-parms-title}
  48. `<follower_index>` (Required)::
  49. (string) The name of the follower index.
  50. [[ccr-post-unfollow-examples]]
  51. ==== {api-examples-title}
  52. This example converts `follower_index` from a follower index to a regular index:
  53. [source,js]
  54. --------------------------------------------------
  55. POST /follower_index/_ccr/unfollow
  56. --------------------------------------------------
  57. // CONSOLE
  58. // TEST
  59. The API returns the following result:
  60. [source,js]
  61. --------------------------------------------------
  62. {
  63. "acknowledged" : true
  64. }
  65. --------------------------------------------------
  66. // TESTRESPONSE