elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb
def put_auto_follow_pattern(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]

          headers = arguments.delete(:headers) || {}

          body = arguments.delete(:body)

          arguments = arguments.clone

          _name = arguments.delete(:name)

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

          perform_request(method, path, params, body, headers).body
        end
# Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices.
#
# @option arguments [String] :name The name of the auto follow pattern.
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The specification of the auto follow pattern (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html
#
Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices.
Creates a new named collection of auto - follow patterns against a specified remote cluster . Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices .
def put_auto_follow_pattern(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _name = arguments.delete(:name)
          method = Elasticsearch::API::HTTP_PUT
          path   = "_ccr/auto_follow/#{Utils.__listify(_name)}"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def put_auto_follow_pattern ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'name' missing" unless arguments [ :name ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _name = arguments . delete ( :name ) method = Elasticsearch :: API :: HTTP_PUT path = "_ccr/auto_follow/#{Utils.__listify(_name)}" params = { } perform_request ( method , path , params , body , headers ) . body end
Creates a new named collection of auto-follow patterns against a specified remote cluster.
Creates a new named collection of auto - follow patterns against a specified remote cluster .
arguments
:body The specification of the auto follow pattern (*Required*)
: body The specification of the auto follow pattern ( * Required * )
see
None