mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
* Propagate ?master_timeout query parameter from crr put follow api * Update docs/changelog/105168.yaml * fix sily mistake * spotless * fix 2 * Add ?master_timeout query param to apis which use it * Update rest api specs + yaml tests * Add master_timeout (+timeout) to remaining api endpoints * Update 105168.yaml Correct message * Enable randomly ?master_timeout param to ccr IT tests * Add timeout param to RestCcrStatsAction * propagate master_timeout param between put_follow -> resume_follow calls * Propagate master_timeout down to persistent task layer * Add transport version for ccr stats request object change * Add BwC test for CcrStatsAction.Request obj
95 lines
2.9 KiB
Text
95 lines
2.9 KiB
Text
[role="xpack"]
|
|
[[ccr-resume-auto-follow-pattern]]
|
|
=== Resume auto-follow pattern API
|
|
++++
|
|
<titleabbrev>Resume auto-follow pattern</titleabbrev>
|
|
++++
|
|
|
|
Resumes an auto-follow pattern.
|
|
|
|
[[ccr-resume-auto-follow-pattern-request]]
|
|
==== {api-request-title}
|
|
|
|
`POST /_ccr/auto_follow/<auto_follow_pattern_name>/resume`
|
|
|
|
[[ccr-resume-auto-follow-pattern-prereqs]]
|
|
==== {api-prereq-title}
|
|
|
|
* 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 <<security-privileges>>.
|
|
|
|
[[ccr-resume-auto-follow-pattern-desc]]
|
|
==== {api-description-title}
|
|
|
|
This API resumes an <<ccr-auto-follow,auto-follow pattern>> that has been paused with the
|
|
<<ccr-pause-auto-follow-pattern, pause auto-follow pattern API>>. When this API
|
|
returns, the auto-follow pattern will resume configuring following indices for
|
|
newly created indices on the remote cluster that match its patterns. Remote
|
|
indices created while the pattern was paused will also be followed, unless they
|
|
have been deleted or closed in the meantime.
|
|
|
|
[[ccr-resume-auto-follow-pattern-path-parms]]
|
|
==== {api-path-parms-title}
|
|
|
|
`<auto_follow_pattern_name>`::
|
|
(Required, string) Specifies the name of the auto-follow pattern to resume.
|
|
|
|
[[ccr-resume-auto-follow-pattern-query-params]]
|
|
==== {api-query-parms-title}
|
|
|
|
`master_timeout`::
|
|
(Optional, <<time-units, time units>>) Specifies the period of time to wait for
|
|
a connection to the master node. If no response is received before the timeout
|
|
expires, the request fails and returns an error. Defaults to `30s`.
|
|
|
|
[[ccr-resume-auto-follow-pattern-examples]]
|
|
==== {api-examples-title}
|
|
|
|
This example resumes the activity of a paused auto-follow pattern
|
|
named `my_auto_follow_pattern`:
|
|
//////////////////////////
|
|
|
|
[source,console]
|
|
--------------------------------------------------
|
|
PUT /_ccr/auto_follow/my_auto_follow_pattern
|
|
{
|
|
"remote_cluster" : "remote_cluster",
|
|
"leader_index_patterns" :
|
|
[
|
|
"leader_index"
|
|
],
|
|
"follow_index_pattern" : "{{leader_index}}-follower"
|
|
}
|
|
--------------------------------------------------
|
|
// TEST[setup:remote_cluster]
|
|
// TESTSETUP
|
|
|
|
[source,console]
|
|
--------------------------------------------------
|
|
DELETE /_ccr/auto_follow/my_auto_follow_pattern
|
|
--------------------------------------------------
|
|
// TEST
|
|
// TEARDOWN
|
|
|
|
[source,console]
|
|
--------------------------------------------------
|
|
POST /_ccr/auto_follow/my_auto_follow_pattern/pause
|
|
--------------------------------------------------
|
|
// TEST
|
|
|
|
//////////////////////////
|
|
[source,console]
|
|
--------------------------------------------------
|
|
POST /_ccr/auto_follow/my_auto_follow_pattern/resume
|
|
--------------------------------------------------
|
|
// TEST
|
|
|
|
The API returns the following result:
|
|
|
|
[source,console-result]
|
|
--------------------------------------------------
|
|
{
|
|
"acknowledged" : true
|
|
}
|
|
--------------------------------------------------
|