69 lines
1.6 KiB
Plaintext
69 lines
1.6 KiB
Plaintext
[role="xpack"]
|
|
[testenv="platinum"]
|
|
[[ccr-delete-auto-follow-pattern]]
|
|
=== Delete Auto-Follow Pattern API
|
|
++++
|
|
<titleabbrev>Delete Auto-Follow Pattern</titleabbrev>
|
|
++++
|
|
|
|
Delete auto-follow patterns.
|
|
|
|
==== Description
|
|
|
|
This API deletes a configured auto-follow pattern collection.
|
|
|
|
==== Request
|
|
|
|
//////////////////////////
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
PUT /_ccr/auto_follow/my_auto_follow_pattern
|
|
{
|
|
"remote_cluster" : "remote_cluster",
|
|
"leader_index_patterns" :
|
|
[
|
|
"leader_index"
|
|
],
|
|
"follow_index_pattern" : "{{leader_index}}-follower"
|
|
}
|
|
--------------------------------------------------
|
|
// CONSOLE
|
|
// TEST[setup:remote_cluster]
|
|
// TESTSETUP
|
|
|
|
//////////////////////////
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
DELETE /_ccr/auto_follow/<auto_follow_pattern_name>
|
|
--------------------------------------------------
|
|
// CONSOLE
|
|
// TEST[s/<auto_follow_pattern_name>/my_auto_follow_pattern/]
|
|
|
|
==== Path Parameters
|
|
`auto_follow_pattern_name` (required)::
|
|
(string) specifies the auto-follow pattern collection to delete
|
|
|
|
==== Example
|
|
|
|
This example deletes an auto-follow pattern collection named
|
|
`my_auto_follow_pattern`:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
DELETE /_ccr/auto_follow/my_auto_follow_pattern
|
|
--------------------------------------------------
|
|
// CONSOLE
|
|
// TEST[setup:remote_cluster]
|
|
|
|
The API returns the following result:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
{
|
|
"acknowledged" : true
|
|
}
|
|
--------------------------------------------------
|
|
// TESTRESPONSE
|