原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/get-pipeline-api.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/get-pipeline-api.html
本地英文版地址: ../en/get-pipeline-api.html
重要: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 当前版本文档。
Get pipeline APIedit
Returns information about one or more ingest pipelines. This API returns a local reference of the pipeline.
GET /_ingest/pipeline/my-pipeline-id
Path parametersedit
-
<pipeline>
- (Optional, string) Comma-separated list or wildcard expression of pipeline IDs used to limit the request.
Query parametersedit
-
master_timeout
-
(Optional, time units) Specifies the period of time to wait for
a connection to the master node. If no response is received before the timeout
expires, the request fails and returns an error. Defaults to
30s
.
Examplesedit
Get information for a specific ingest pipelineedit
GET /_ingest/pipeline/my-pipeline-id
The API returns the following response:
{ "my-pipeline-id" : { "description" : "describe pipeline", "version" : 123, "processors" : [ { "set" : { "field" : "foo", "value" : "bar" } } ] } }
Get the version of an ingest pipelineedit
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.
To check the pipeline version,
use the filter_path
query parameter
to filter the response
to only the version.
GET /_ingest/pipeline/my-pipeline-id?filter_path=*.version
The API returns the following response:
{ "my-pipeline-id" : { "version" : 123 } }