delete-auto-follow-pattern.asciidoc 1.8 KB

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