post-unfollow.asciidoc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[ccr-post-unfollow]]
  4. === Unfollow API
  5. ++++
  6. <titleabbrev>Unfollow</titleabbrev>
  7. ++++
  8. beta[]
  9. Converts a follower index to a regular index.
  10. ==== Description
  11. This API stops the following task associated with a follower index and removes
  12. index metadata and settings associated with {ccr}. This enables the index to
  13. treated as a regular index. The follower index must be paused and closed before
  14. invoking the unfollow API.
  15. NOTE: Currently {ccr} does not support converting an existing regular index to a
  16. follower index. Converting a follower index to a regular index is an
  17. irreversible operation.
  18. ==== Request
  19. //////////////////////////
  20. [source,js]
  21. --------------------------------------------------
  22. PUT /follower_index/_ccr/follow
  23. {
  24. "remote_cluster" : "remote_cluster",
  25. "leader_index" : "leader_index"
  26. }
  27. POST /follower_index/_ccr/pause_follow
  28. POST /follower_index/_close
  29. --------------------------------------------------
  30. // CONSOLE
  31. // TESTSETUP
  32. // TEST[setup:remote_cluster_and_leader_index]
  33. //////////////////////////
  34. [source,js]
  35. --------------------------------------------------
  36. POST /<follower_index>/_ccr/unfollow
  37. --------------------------------------------------
  38. // CONSOLE
  39. // TEST[s/<follower_index>/follower_index/]
  40. ==== Path Parameters
  41. `follower_index` (required)::
  42. (string) the name of the follower index
  43. ==== Authorization
  44. If the {es} {security-features} are enabled, you must have `manage_follow_index`
  45. index privileges for the follower index. For more information, see
  46. {stack-ov}/security-privileges.html[Security privileges].
  47. ==== Example
  48. This example converts `follower_index` from a follower index to a regular index:
  49. [source,js]
  50. --------------------------------------------------
  51. POST /follower_index/_ccr/unfollow
  52. --------------------------------------------------
  53. // CONSOLE
  54. // TEST
  55. The API returns the following result:
  56. [source,js]
  57. --------------------------------------------------
  58. {
  59. "acknowledged" : true
  60. }
  61. --------------------------------------------------
  62. // TESTRESPONSE