delete-auto-follow-pattern.asciidoc 2.1 KB

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