Pause a follower
Generally available; Added in 6.5.0
Pause a cross-cluster replication follower index. The follower index will not fetch any additional operations from the leader index. You can resume following with the resume follower API. You can pause and resume a follower index to change the configuration of the following task.
Required authorization
- Cluster privileges:
manage_ccr
Path parameters
-
index
string Required The name of the follower index.
Query parameters
-
master_timeout
string The period to wait for a connection to the master node. If the master node is not available before the timeout expires, the request fails and returns an error. It can also be set to
-1
to indicate that the request should never timeout.Values are
-1
or0
.
POST
/{index}/_ccr/pause_follow
Console
POST /follower_index/_ccr/pause_follow
resp = client.ccr.pause_follow(
index="follower_index",
)
const response = await client.ccr.pauseFollow({
index: "follower_index",
});
response = client.ccr.pause_follow(
index: "follower_index"
)
$resp = $client->ccr()->pauseFollow([
"index" => "follower_index",
]);
curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/follower_index/_ccr/pause_follow"
Response examples (200)
A successful response from `POST /follower_index/_ccr/pause_follow`, which pauses a follower index.
{
"acknowledged" : true
}