Module: ElasticsearchServerless::API::Tasks::Actions
- Defined in:
- lib/elasticsearch-serverless/api/tasks/get.rb
Instance Method Summary collapse
-
#get(arguments = {}) ⇒ Object
Returns information about a task.
Instance Method Details
#get(arguments = {}) ⇒ Object
Returns information about a task. This functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/elasticsearch-serverless/api/tasks/get.rb', line 38 def get(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _task_id = arguments.delete(:task_id) method = ElasticsearchServerless::API::HTTP_GET path = "_tasks/#{Utils.listify(_task_id)}" params = Utils.process_params(arguments) ElasticsearchServerless::API::Response.new( perform_request(method, path, params, body, headers) ) end |