delete-auto-follow-pattern.asciidoc 2.0 KB

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