delete-auto-follow-pattern.asciidoc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [role="xpack"]
  2. [[ccr-delete-auto-follow-pattern]]
  3. === Delete auto-follow pattern API
  4. ++++
  5. <titleabbrev>Delete auto-follow pattern</titleabbrev>
  6. ++++
  7. Delete auto-follow patterns.
  8. [[ccr-delete-auto-follow-pattern-request]]
  9. ==== {api-request-title}
  10. //////////////////////////
  11. [source,console]
  12. --------------------------------------------------
  13. PUT /_ccr/auto_follow/my_auto_follow_pattern
  14. {
  15. "remote_cluster" : "remote_cluster",
  16. "leader_index_patterns" :
  17. [
  18. "leader_index"
  19. ],
  20. "follow_index_pattern" : "{{leader_index}}-follower"
  21. }
  22. --------------------------------------------------
  23. // TEST[setup:remote_cluster]
  24. // TESTSETUP
  25. //////////////////////////
  26. [source,console]
  27. --------------------------------------------------
  28. DELETE /_ccr/auto_follow/<auto_follow_pattern_name>
  29. --------------------------------------------------
  30. // TEST[s/<auto_follow_pattern_name>/my_auto_follow_pattern/]
  31. [[ccr-delete-auto-follow-pattern-prereqs]]
  32. ==== {api-prereq-title}
  33. * If the {es} {security-features} are enabled, you must have `manage_ccr` cluster
  34. privileges on the cluster that contains the follower index. For more information,
  35. see <<security-privileges>>.
  36. [[ccr-delete-auto-follow-pattern-desc]]
  37. ==== {api-description-title}
  38. This API deletes a configured collection of
  39. <<ccr-auto-follow,auto-follow patterns>>.
  40. [[ccr-delete-auto-follow-pattern-path-parms]]
  41. ==== {api-path-parms-title}
  42. `<auto_follow_pattern_name>`::
  43. (Required, string) Specifies the auto-follow pattern collection to delete.
  44. [[ccr-delete-auto-follow-pattern-query-params]]
  45. ==== {api-query-parms-title}
  46. `master_timeout`::
  47. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  48. a connection to the master node. If no response is received before the timeout
  49. expires, the request fails and returns an error. Defaults to `30s`.
  50. [[ccr-delete-auto-follow-pattern-examples]]
  51. ==== {api-examples-title}
  52. This example deletes an auto-follow pattern collection named
  53. `my_auto_follow_pattern`:
  54. [source,console]
  55. --------------------------------------------------
  56. DELETE /_ccr/auto_follow/my_auto_follow_pattern
  57. --------------------------------------------------
  58. // TEST[setup:remote_cluster]
  59. The API returns the following result:
  60. [source,console-result]
  61. --------------------------------------------------
  62. {
  63. "acknowledged" : true
  64. }
  65. --------------------------------------------------