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

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

          body = arguments.delete(:body)

          arguments = arguments.clone

          _index = arguments.delete(:index)

          method = Elasticsearch::API::HTTP_PUT
          path   = "#{Utils.__listify(_index)}/_ccr/follow"
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Creates a new follower index configured to follow the referenced leader index.
#
# @option arguments [String] :index The name of the follower index
# @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before returning. Defaults to 0. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The name of the leader index and other optional ccr related parameters (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html
#
Creates a new follower index configured to follow the referenced leader index.
Creates a new follower index configured to follow the referenced leader index .
def follow(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _index = arguments.delete(:index)
          method = Elasticsearch::API::HTTP_PUT
          path   = "#{Utils.__listify(_index)}/_ccr/follow"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def follow ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'index' missing" unless arguments [ :index ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _index = arguments . delete ( :index ) method = Elasticsearch :: API :: HTTP_PUT path = "#{Utils.__listify(_index)}/_ccr/follow" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Creates a new follower index configured to follow the referenced leader index.
Creates a new follower index configured to follow the referenced leader index .
arguments
:body The name of the leader index and other optional ccr related parameters (*Required*)
: body The name of the leader index and other optional ccr related parameters ( * Required * )
see
None