delete-auto-follow-pattern.asciidoc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[ccr-delete-auto-follow-pattern]]
  4. === Delete Auto-Follow Pattern API
  5. ++++
  6. <titleabbrev>Delete Auto-Follow Pattern</titleabbrev>
  7. ++++
  8. beta[]
  9. Delete auto-follow patterns.
  10. ==== Description
  11. This API deletes a configured collection of
  12. {stack-ov}/ccr-auto-follow.html[auto-follow patterns].
  13. ==== Request
  14. //////////////////////////
  15. [source,js]
  16. --------------------------------------------------
  17. PUT /_ccr/auto_follow/my_auto_follow_pattern
  18. {
  19. "remote_cluster" : "remote_cluster",
  20. "leader_index_patterns" :
  21. [
  22. "leader_index"
  23. ],
  24. "follow_index_pattern" : "{{leader_index}}-follower"
  25. }
  26. --------------------------------------------------
  27. // CONSOLE
  28. // TEST[setup:remote_cluster]
  29. // TESTSETUP
  30. //////////////////////////
  31. [source,js]
  32. --------------------------------------------------
  33. DELETE /_ccr/auto_follow/<auto_follow_pattern_name>
  34. --------------------------------------------------
  35. // CONSOLE
  36. // TEST[s/<auto_follow_pattern_name>/my_auto_follow_pattern/]
  37. ==== Path Parameters
  38. `auto_follow_pattern_name` (required)::
  39. (string) specifies the auto-follow pattern collection to delete
  40. ==== Authorization
  41. If the {es} {security-features} are enabled, you must have `manage_ccr` cluster
  42. privileges on the cluster that contains the follower index. For more information,
  43. see {stack-ov}/security-privileges.html[Security privileges].
  44. ==== Example
  45. This example deletes an auto-follow pattern collection named
  46. `my_auto_follow_pattern`:
  47. [source,js]
  48. --------------------------------------------------
  49. DELETE /_ccr/auto_follow/my_auto_follow_pattern
  50. --------------------------------------------------
  51. // CONSOLE
  52. // TEST[setup:remote_cluster]
  53. The API returns the following result:
  54. [source,js]
  55. --------------------------------------------------
  56. {
  57. "acknowledged" : true
  58. }
  59. --------------------------------------------------
  60. // TESTRESPONSE