1
1
[[get-pipeline-api]]
2
- === Get Pipeline API
2
+ === Get pipeline API
3
+ ++++
4
+ <titleabbrev>Get pipeline</titleabbrev>
5
+ ++++
3
6
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.
5
9
6
- //////////////////////////
7
-
8
- [source,js]
10
+ [source,console]
9
11
--------------------------------------------------
10
12
PUT _ingest/pipeline/my-pipeline-id
11
13
{
12
14
"description" : "describe pipeline",
15
+ "version" : 123,
13
16
"processors" : [
14
17
{
15
18
"set" : {
@@ -20,24 +23,28 @@ PUT _ingest/pipeline/my-pipeline-id
20
23
]
21
24
}
22
25
--------------------------------------------------
23
- // CONSOLE
24
26
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
26
33
27
- [source,js ]
34
+ [source,console ]
28
35
--------------------------------------------------
29
36
GET _ingest/pipeline/my-pipeline-id
30
37
--------------------------------------------------
31
- // CONSOLE
32
38
// TEST[continued]
33
39
34
- Example response:
40
+ The API returns the following response:
35
41
36
- [source,js ]
42
+ [source,console-result ]
37
43
--------------------------------------------------
38
44
{
39
45
"my-pipeline-id" : {
40
46
"description" : "describe pipeline",
47
+ "version" : 123,
41
48
"processors" : [
42
49
{
43
50
"set" : {
@@ -49,23 +56,17 @@ Example response:
49
56
}
50
57
}
51
58
--------------------------------------------------
52
- // TESTRESPONSE
53
59
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.
57
60
58
- [float]
59
- [[versioning-pipelines]]
60
- ==== Pipeline Versioning
61
+ [[get-pipeline-api-version-ex]]
62
+ ===== Get the version of an ingest pipeline
61
63
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.
67
68
68
- [source,js ]
69
+ [source,console ]
69
70
--------------------------------------------------
70
71
PUT _ingest/pipeline/my-pipeline-id
71
72
{
@@ -81,46 +82,42 @@ PUT _ingest/pipeline/my-pipeline-id
81
82
]
82
83
}
83
84
--------------------------------------------------
84
- // CONSOLE
85
85
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.
89
90
90
- [source,js ]
91
+ [source,console ]
91
92
--------------------------------------------------
92
93
GET /_ingest/pipeline/my-pipeline-id?filter_path=*.version
93
94
--------------------------------------------------
94
- // CONSOLE
95
95
// TEST[continued]
96
96
97
- This should give a small response that makes it both easy and inexpensive to parse :
97
+ The API returns the following response:
98
98
99
- [source,js ]
99
+ [source,console-result ]
100
100
--------------------------------------------------
101
101
{
102
102
"my-pipeline-id" : {
103
103
"version" : 123
104
104
}
105
105
}
106
106
--------------------------------------------------
107
- // TESTRESPONSE
108
107
109
108
//////////////////////////
110
109
111
- [source,js ]
110
+ [source,console ]
112
111
--------------------------------------------------
113
112
DELETE /_ingest/pipeline/my-pipeline-id
114
113
--------------------------------------------------
115
- // CONSOLE
116
114
// TEST[continued]
117
115
118
- [source,js ]
116
+ [source,console-result ]
119
117
--------------------------------------------------
120
118
{
121
119
"acknowledged": true
122
120
}
123
121
--------------------------------------------------
124
- // TESTRESPONSE
125
122
126
123
//////////////////////////
0 commit comments