Sha256: 7b164053ffa72da184cd8bbf2cd16275376dc2da1ab88ccbd736817f37e6efc3

Contents?: true

Size: 945 Bytes

Versions: 1

Compression:

Stored size: 945 Bytes

Contents

module Elasticsearch
  module API
    module Ingest
      module Actions

        # Return a specified pipeline
        #
        # @option arguments [String] :id Comma separated list of pipeline ids. Wildcards supported (*Required*)
        # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
        #
        # @see https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
        #
        def get_pipeline(arguments={})
          raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
          valid_params = [
            :master_timeout ]
          method = 'GET'
          path   = Utils.__pathify "_ingest/pipeline", Utils.__escape(arguments[:id])
          params = Utils.__validate_and_extract_params arguments, valid_params
          body   = nil

          perform_request(method, path, params, body).body
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elasticsearch-api-1.0.18 lib/elasticsearch/api/actions/ingest/get_pipeline.rb