Method: Elasticsearch::API::CrossClusterReplication::Actions#forget_follower
- Defined in:
- lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb
#forget_follower(arguments = {}) ⇒ Object
Removes the follower retention leases from the leader.
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/forget_follower.rb', line 33 def forget_follower(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = "#{Utils.__listify(_index)}/_ccr/forget_follower" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |