We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 463289a commit 2e513cbCopy full SHA for 2e513cb
elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb
@@ -30,8 +30,6 @@ module Actions
30
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.7/logstash-api-get-pipeline.html
31
#
32
def get_pipeline(arguments = {})
33
- raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
34
-
35
arguments = arguments.clone
36
headers = arguments.delete(:headers) || {}
37
@@ -40,7 +38,11 @@ def get_pipeline(arguments = {})
40
38
_id = arguments.delete(:id)
41
39
42
method = Elasticsearch::API::HTTP_GET
43
- path = "_logstash/pipeline/#{Utils.__listify(_id)}"
+ path = if _id
+ "_logstash/pipeline/#{Utils.__listify(_id)}"
+ else
44
+ "_logstash/pipeline"
45
+ end
46
params = {}
47
48
Elasticsearch::API::Response.new(
0 commit comments