elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb
# Retrieves the status of a previously submitted async search request given its ID.
#
# @option arguments [String] :id The async search ID
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
#
Retrieves the status of a previously submitted async search request given its ID.
Retrieves the status of a previously submitted async search request given its ID .
def status(arguments = {})
          raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
          arguments = arguments.clone
          headers = arguments.delete(:headers) || {}
          body = nil
          _id = arguments.delete(:id)
          method = Elasticsearch::API::HTTP_GET
          path   = "_async_search/status/#{Utils.__listify(_id)}"
          params = {}
          Elasticsearch::API::Response.new(
            perform_request(method, path, params, body, headers)
          )
        end
def status ( arguments = { } ) raise ArgumentError , "Required argument 'id' missing" unless arguments [ :id ] arguments = arguments . clone headers = arguments . delete ( :headers ) || { } body = nil _id = arguments . delete ( :id ) method = Elasticsearch :: API :: HTTP_GET path = "_async_search/status/#{Utils.__listify(_id)}" params = { } Elasticsearch :: API :: Response . new ( perform_request ( method , path , params , body , headers ) ) end
Retrieves the status of a previously submitted async search request given its ID.
Retrieves the status of a previously submitted async search request given its ID .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None