Method: OpenSearch::API::Actions#close_point_in_time

Defined in:
lib/opensearch/api/actions/close_point_in_time.rb

#close_point_in_time(arguments = {}) ⇒ Object

Close a point in time

Parameters:

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

    a customizable set of options

Options Hash (arguments):

  • :headers (Hash)

    Custom HTTP headers

  • :body (Hash)

    a point-in-time id to close



36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/opensearch/api/actions/close_point_in_time.rb', line 36

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

  arguments = arguments.clone

  method = OpenSearch::API::HTTP_DELETE
  path   = "_pit"
  params = {}

  body = arguments[:body]
  perform_request(method, path, params, body, headers).body
end