Get auto-follow patterns
- GET /_ccr/auto_follow/{name}
- GET /_ccr/auto_follow
Get cross-cluster replication auto-follow patterns.
- Cluster privileges:
manage_ccr
Path Parameters
-
namestring Nameoptional -
The auto-follow pattern collection that you want to retrieve. If you do not specify a name, the API returns information for all collections.
Leave it out to use
/_ccr/auto_follow.
Query Parameters
-
master_timeoutstring Duration · default: 30s 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
-1to indicate that the request should never timeout.
Response
-
patternsAutoFollowPatternrequired -
namestring Namerequired -
patternAutoFollowPatternSummaryrequired -
activebooleanrequired -
remote_clusterstringrequired -
The remote cluster containing the leader indices to match against.
-
follow_index_patternstring -
The name of follower index.
-
leader_index_patternsIndexPatternsrequired -
An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.
-
leader_index_exclusion_patternsIndexPatternsrequired -
An array of simple index patterns that can be used to exclude indices from being auto-followed.
-
max_outstanding_read_requestsnumberrequired -
The maximum number of outstanding reads requests from the remote cluster.