2018-12-23 08:59:18 -05:00
|
|
|
[[get-pipeline-api]]
|
2019-09-26 08:51:12 -04:00
|
|
|
=== Get pipeline API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Get pipeline</titleabbrev>
|
|
|
|
++++
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-26 08:51:12 -04:00
|
|
|
Returns information about one or more ingest pipelines.
|
|
|
|
This API returns a local reference of the pipeline.
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-26 08:51:12 -04:00
|
|
|
////
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
|
|
|
PUT /_ingest/pipeline/my-pipeline-id
|
2018-12-23 08:59:18 -05:00
|
|
|
{
|
|
|
|
"description" : "describe pipeline",
|
2019-09-26 08:51:12 -04:00
|
|
|
"version" : 123,
|
2018-12-23 08:59:18 -05:00
|
|
|
"processors" : [
|
|
|
|
{
|
|
|
|
"set" : {
|
|
|
|
"field": "foo",
|
|
|
|
"value": "bar"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
|
|
|
////
|
|
|
|
|
|
|
|
[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-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=path-pipeline]
|
2019-09-26 08:51:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[get-pipeline-api-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=master-timeout]
|
2019-09-26 08:51:12 -04:00
|
|
|
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-26 08:51:12 -04:00
|
|
|
[[get-pipeline-api-api-example]]
|
|
|
|
==== {api-examples-title}
|
|
|
|
|
|
|
|
|
|
|
|
[[get-pipeline-api-specific-ex]]
|
|
|
|
===== Get information for a specific ingest pipeline
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
|
|
|
GET /_ingest/pipeline/my-pipeline-id
|
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
// TEST[continued]
|
|
|
|
|
2019-09-26 08:51:12 -04:00
|
|
|
The API returns the following response:
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-06 09:22:08 -04:00
|
|
|
[source,console-result]
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
{
|
|
|
|
"my-pipeline-id" : {
|
|
|
|
"description" : "describe pipeline",
|
2019-09-26 08:51:12 -04:00
|
|
|
"version" : 123,
|
2018-12-23 08:59:18 -05:00
|
|
|
"processors" : [
|
|
|
|
{
|
|
|
|
"set" : {
|
|
|
|
"field" : "foo",
|
|
|
|
"value" : "bar"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
|
|
|
|
|
2019-09-26 08:51:12 -04:00
|
|
|
[[get-pipeline-api-version-ex]]
|
|
|
|
===== Get the version of an ingest pipeline
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-26 08:51:12 -04:00
|
|
|
When you create or update an ingest pipeline,
|
|
|
|
you can specify an optional `version` parameter.
|
|
|
|
The version is useful for managing changes to pipeline
|
|
|
|
and viewing the current pipeline for an ingest node.
|
2018-12-23 08:59:18 -05:00
|
|
|
|
|
|
|
|
2019-09-26 08:51:12 -04:00
|
|
|
To check the pipeline version,
|
|
|
|
use the `filter_path` query parameter
|
|
|
|
to <<common-options-response-filtering, filter the response>>
|
|
|
|
to only the version.
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
GET /_ingest/pipeline/my-pipeline-id?filter_path=*.version
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
// TEST[continued]
|
|
|
|
|
2019-09-26 08:51:12 -04:00
|
|
|
The API returns the following response:
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-06 09:22:08 -04:00
|
|
|
[source,console-result]
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
{
|
|
|
|
"my-pipeline-id" : {
|
|
|
|
"version" : 123
|
|
|
|
}
|
|
|
|
}
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-26 08:51:12 -04:00
|
|
|
////
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
DELETE /_ingest/pipeline/my-pipeline-id
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
// TEST[continued]
|
|
|
|
|
2019-09-06 09:22:08 -04:00
|
|
|
[source,console-result]
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
{
|
|
|
|
"acknowledged": true
|
|
|
|
}
|
2019-09-26 08:51:12 -04:00
|
|
|
----
|
|
|
|
////
|