Spec-Zone.ru › Elasticsearch 8
›Elasticsearch Guide [8.17] ›REST APIs ›Ingest APIs

Get pipeline API

New API reference

For the most up-to-date API details, refer to Ingest APIs.

Returns information about one or more ingest pipelines. This API returns a local reference of the pipeline.

resp = client.ingest.get_pipeline(
    id="my-pipeline-id",
)
print(resp)
response = client.ingest.get_pipeline(
  id: 'my-pipeline-id'
)
puts response
const response = await client.ingest.getPipeline({
  id: "my-pipeline-id",
});
console.log(response);
GET /_ingest/pipeline/my-pipeline-id

Request

GET /_ingest/pipeline/<pipeline>

GET /_ingest/pipeline

Prerequisites

  • If the Elasticsearch security features are enabled, you must have the read_pipeline, manage_pipeline, manage_ingest_pipelines, or manage cluster privilege to use this API.

Path parameters

<pipeline>

(Optional, string) Comma-separated list of pipeline IDs to retrieve. Wildcard (*) expressions are supported.

To get all ingest pipelines, omit this parameter or use *.

Query parameters

master_timeout
(Optional, time units) Period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. Defaults to 30s. Can also be set to -1 to indicate that the request should never timeout.

Examples

Get information for a specific ingest pipeline

resp = client.ingest.get_pipeline(
    id="my-pipeline-id",
)
print(resp)
response = client.ingest.get_pipeline(
  id: 'my-pipeline-id'
)
puts response
const response = await client.ingest.getPipeline({
  id: "my-pipeline-id",
});
console.log(response);
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"
        }
      }
    ]
  }
}

© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-pipeline-api.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API