| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 | [[get-pipeline-api]]=== Get pipeline API++++<titleabbrev>Get pipeline</titleabbrev>++++Returns information about one or more ingest pipelines.This API returns a local reference of the pipeline.////[source,console]----PUT /_ingest/pipeline/my-pipeline-id{  "description" : "describe pipeline",  "version" : 123,  "processors" : [    {      "set" : {        "field": "foo",        "value": "bar"      }    }  ]}----////[source,console]----GET /_ingest/pipeline/my-pipeline-id----// TEST[continued][[get-pipeline-api-request]]==== {api-request-title}`GET /_ingest/pipeline/<pipeline>``GET /_ingest/pipeline`[[get-pipeline-api-prereqs]]==== {api-prereq-title}* If the {es} {security-features} are enabled, you must have the`read_pipeline`, `manage_pipeline`, `manage_ingest_pipelines`, or `manage`<<privileges-list-cluster,cluster privilege>> to use this API.[[get-pipeline-api-path-params]]==== {api-path-parms-title}`<pipeline>`::(Optional, string)Comma-separated list of pipeline IDs to retrieve. Wildcard (`*`) expressions aresupported.+To get all ingest pipelines, omit this parameter or use `*`.[[get-pipeline-api-query-params]]==== {api-query-parms-title}include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=master-timeout][[get-pipeline-api-api-example]]==== {api-examples-title}[[get-pipeline-api-specific-ex]]===== Get information for a specific ingest pipeline[source,console]----GET /_ingest/pipeline/my-pipeline-id----// TEST[continued]The API returns the following response:[source,console-result]----{  "my-pipeline-id" : {    "description" : "describe pipeline",    "version" : 123,    "processors" : [      {        "set" : {          "field" : "foo",          "value" : "bar"        }      }    ]  }}----[[get-pipeline-api-version-ex]]===== Get the version of an ingest pipelineWhen you create or update an ingest pipeline,you can specify an optional `version` parameter.The version is useful for managing changes to pipelineand viewing the current pipeline for an ingest node.To check the pipeline version,use the `filter_path` query parameterto <<common-options-response-filtering, filter the response>>to only the version.[source,console]----GET /_ingest/pipeline/my-pipeline-id?filter_path=*.version----// TEST[continued]The API returns the following response:[source,console-result]----{  "my-pipeline-id" : {    "version" : 123  }}----////[source,console]----DELETE /_ingest/pipeline/my-pipeline-id----// TEST[continued][source,console-result]----{"acknowledged": true}----////
 |