Get auto-follow patterns.
This API gets configured auto-follow patterns. This API will return the specified auto-follow pattern collection.
auto_follow_pattern_name
If the Elasticsearch 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.
This example retrieves information about an auto-follow pattern collection
named my_auto_follow_pattern
:
GET /_ccr/auto_follow/my_auto_follow_pattern
The API returns the following result:
{ "patterns": [ { "name": "my_auto_follow_pattern", "pattern": { "remote_cluster" : "remote_cluster", "leader_index_patterns" : [ "leader_index*" ], "follow_index_pattern" : "{{leader_index}}-follower" } } ] }