2018-10-26 11:23:35 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="platinum"]
|
|
|
|
[[ccr-post-pause-follow]]
|
2018-12-20 13:23:28 -05:00
|
|
|
=== Pause follower API
|
2018-10-26 11:23:35 -04:00
|
|
|
++++
|
2018-12-20 13:23:28 -05:00
|
|
|
<titleabbrev>Pause follower</titleabbrev>
|
2018-10-26 11:23:35 -04:00
|
|
|
++++
|
|
|
|
|
|
|
|
Pauses a follower index.
|
|
|
|
|
2019-07-04 11:22:17 -04:00
|
|
|
[[ccr-post-pause-follow-request]]
|
|
|
|
==== {api-request-title}
|
2018-10-26 11:23:35 -04:00
|
|
|
|
|
|
|
//////////////////////////
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
2019-01-29 13:47:29 -05:00
|
|
|
PUT /follower_index/_ccr/follow?wait_for_active_shards=1
|
2018-10-26 11:23:35 -04:00
|
|
|
{
|
|
|
|
"remote_cluster" : "remote_cluster",
|
|
|
|
"leader_index" : "leader_index"
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
// TESTSETUP
|
|
|
|
// TEST[setup:remote_cluster_and_leader_index]
|
|
|
|
|
|
|
|
//////////////////////////
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
POST /<follower_index>/_ccr/pause_follow
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
// TEST[s/<follower_index>/follower_index/]
|
|
|
|
|
2019-07-04 11:22:17 -04:00
|
|
|
[[ccr-post-pause-follow-prereqs]]
|
|
|
|
==== {api-prereq-title}
|
2018-10-26 11:23:35 -04:00
|
|
|
|
2019-07-04 11:22:17 -04:00
|
|
|
* If the {es} {security-features} are enabled, you must have `manage_ccr` cluster
|
|
|
|
privileges on the cluster that contains the follower index. For more information,
|
|
|
|
see {stack-ov}/security-privileges.html[Security privileges].
|
2018-10-26 11:23:35 -04:00
|
|
|
|
2019-07-04 11:22:17 -04:00
|
|
|
[[ccr-post-pause-follow-desc]]
|
|
|
|
==== {api-description-title}
|
2018-11-20 19:23:01 -05:00
|
|
|
|
2019-07-04 11:22:17 -04:00
|
|
|
This API pauses a follower index. When this API returns, the follower index will
|
|
|
|
not fetch any additional operations from the leader index. You can resume
|
|
|
|
following with the <<ccr-post-resume-follow,resume follower API>>. Pausing and
|
|
|
|
resuming a follower index can be used to change the configuration of the
|
|
|
|
following task.
|
2018-11-20 19:23:01 -05:00
|
|
|
|
2019-07-04 11:22:17 -04:00
|
|
|
[[ccr-post-pause-follow-path-parms]]
|
|
|
|
==== {api-path-parms-title}
|
2018-11-20 19:23:01 -05:00
|
|
|
|
2019-07-04 11:22:17 -04:00
|
|
|
`<follower_index>` (Required)::
|
|
|
|
(string) The name of the follower index.
|
2018-11-20 19:23:01 -05:00
|
|
|
|
2019-07-04 11:22:17 -04:00
|
|
|
[[ccr-post-pause-follow-examples]]
|
|
|
|
==== {api-examples-title}
|
2018-10-26 11:23:35 -04:00
|
|
|
|
|
|
|
This example pauses a follower index named `follower_index`:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
POST /follower_index/_ccr/pause_follow
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
// TEST
|
|
|
|
|
|
|
|
The API returns the following result:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"acknowledged" : true
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
// TESTRESPONSE
|