11[[get-pipeline-api]]
2- === Get Pipeline API
2+ === Get pipeline API
3+ ++++
4+ <titleabbrev>Get pipeline</titleabbrev>
5+ ++++
36
4- The get pipeline API returns pipelines based on ID. This API always returns a local reference of the pipeline.
7+ Returns information about one or more ingest pipelines.
8+ This API returns a local reference of the pipeline.
59
6- //////////////////////////
7-
8- [source,js]
10+ [source,console]
911--------------------------------------------------
1012PUT _ingest/pipeline/my-pipeline-id
1113{
1214 "description" : "describe pipeline",
15+ "version" : 123,
1316 "processors" : [
1417 {
1518 "set" : {
@@ -20,24 +23,28 @@ PUT _ingest/pipeline/my-pipeline-id
2023 ]
2124}
2225--------------------------------------------------
23- // CONSOLE
2426
25- //////////////////////////
27+ [[get-pipeline-api-api-example]]
28+ ==== {api-examples-title}
29+
30+
31+ [[get-pipeline-api-specific-ex]]
32+ ===== Get information for a specific ingest pipeline
2633
27- [source,js ]
34+ [source,console ]
2835--------------------------------------------------
2936GET _ingest/pipeline/my-pipeline-id
3037--------------------------------------------------
31- // CONSOLE
3238// TEST[continued]
3339
34- Example response:
40+ The API returns the following response:
3541
36- [source,js ]
42+ [source,console-result ]
3743--------------------------------------------------
3844{
3945 "my-pipeline-id" : {
4046 "description" : "describe pipeline",
47+ "version" : 123,
4148 "processors" : [
4249 {
4350 "set" : {
@@ -49,23 +56,17 @@ Example response:
4956 }
5057}
5158--------------------------------------------------
52- // TESTRESPONSE
5359
54- For each returned pipeline, the source and the version are returned.
55- The version is useful for knowing which version of the pipeline the node has.
56- You can specify multiple IDs to return more than one pipeline. Wildcards are also supported.
5760
58- [float]
59- [[versioning-pipelines]]
60- ==== Pipeline Versioning
61+ [[get-pipeline-api-version-ex]]
62+ ===== Get the version of an ingest pipeline
6163
62- Pipelines can optionally add a `version` number, which can be any integer value,
63- in order to simplify pipeline management by external systems. The `version`
64- field is completely optional and it is meant solely for external management of
65- pipelines. To unset a `version`, simply replace the pipeline without specifying
66- one.
64+ When you create or update an ingest pipeline,
65+ you can specify an optional `version` parameter.
66+ The version is useful for managing changes to pipeline
67+ and viewing the current pipeline for an ingest node.
6768
68- [source,js ]
69+ [source,console ]
6970--------------------------------------------------
7071PUT _ingest/pipeline/my-pipeline-id
7172{
@@ -81,46 +82,42 @@ PUT _ingest/pipeline/my-pipeline-id
8182 ]
8283}
8384--------------------------------------------------
84- // CONSOLE
8585
86- To check for the `version`, you can
87- <<common-options-response-filtering, filter responses>>
88- using `filter_path` to limit the response to just the `version`:
86+ To check the pipeline version,
87+ use the `filter_path` query parameter
88+ to <<common-options-response-filtering, filter the response>>
89+ to only the version.
8990
90- [source,js ]
91+ [source,console ]
9192--------------------------------------------------
9293GET /_ingest/pipeline/my-pipeline-id?filter_path=*.version
9394--------------------------------------------------
94- // CONSOLE
9595// TEST[continued]
9696
97- This should give a small response that makes it both easy and inexpensive to parse :
97+ The API returns the following response:
9898
99- [source,js ]
99+ [source,console-result ]
100100--------------------------------------------------
101101{
102102 "my-pipeline-id" : {
103103 "version" : 123
104104 }
105105}
106106--------------------------------------------------
107- // TESTRESPONSE
108107
109108//////////////////////////
110109
111- [source,js ]
110+ [source,console ]
112111--------------------------------------------------
113112DELETE /_ingest/pipeline/my-pipeline-id
114113--------------------------------------------------
115- // CONSOLE
116114// TEST[continued]
117115
118- [source,js ]
116+ [source,console-result ]
119117--------------------------------------------------
120118{
121119"acknowledged": true
122120}
123121--------------------------------------------------
124- // TESTRESPONSE
125122
126123//////////////////////////
0 commit comments