Get auto-follow patterns

  • GET /_ccr/auto_follow/{name}
  • GET /_ccr/auto_follow
Auth

Get cross-cluster replication auto-follow patterns.

More about auto-follow patterns

Required authorization

Cluster privileges manage_ccr

Path parameters

name string optional

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_timeout string · 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 -1 to indicate that the request should never timeout.

Response

application/json
patterns object[] required
name string required
pattern object required
active boolean required
remote_cluster string required

The remote cluster containing the leader indices to match against.

follow_index_pattern string

The name of follower index.

leader_index_patterns string[] required

An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.

leader_index_exclusion_patterns string[] required

An array of simple index patterns that can be used to exclude indices from being auto-followed.

max_outstanding_read_requests number required

The maximum number of outstanding reads requests from the remote cluster.