post-unfollow.asciidoc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 Parmeters
  41. `follower_index` (required)::
  42. (string) the name of the follower index
  43. ==== Example
  44. This example converts `follower_index` from a follower index to a regular index:
  45. [source,js]
  46. --------------------------------------------------
  47. POST /follower_index/_ccr/unfollow
  48. --------------------------------------------------
  49. // CONSOLE
  50. // TEST
  51. The API returns the following result:
  52. [source,js]
  53. --------------------------------------------------
  54. {
  55. "acknowledged" : true
  56. }
  57. --------------------------------------------------
  58. // TESTRESPONSE