Method: Elasticsearch::API::CrossClusterReplication::Actions#get_auto_follow_pattern

Defined in:
lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb

#get_auto_follow_pattern(arguments = {}) ⇒ Object

Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection.

Parameters:

  • arguments (Hash) (defaults to: {})

    a customizable set of options

Options Hash (arguments):

  • :name (String)

    The name of the auto follow pattern.

  • :headers (Hash)

    Custom HTTP headers

See Also:



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb', line 32

def get_auto_follow_pattern(arguments = {})
  arguments = arguments.clone
  headers = arguments.delete(:headers) || {}

  body = nil

  _name = arguments.delete(:name)

  method = Elasticsearch::API::HTTP_GET
  path   = if _name
             "_ccr/auto_follow/#{Utils.__listify(_name)}"
           else
             "_ccr/auto_follow"
           end
  params = {}

  Elasticsearch::API::Response.new(
    perform_request(method, path, params, body, headers)
  )
end