获取管道

获取管道 #

使用获取摄取管道 API 操作来检索有关管道的所有信息。

检索有关所有管道的信息 #

以下示例请求返回有关所有摄取管道的信息:

GET _ingest/pipeline/

检索特定管道的信息 #

以下示例请求返回有关特定管道的信息,本例中为 my-pipeline

GET _ingest/pipeline/my-pipeline

返回内容包含管道信息:

{
  "my-pipeline": {
    "description": "This pipeline processes student data",
    "processors": [
      {
        "set": {
          "description": "Sets the graduation year to 2023",
          "field": "grad_year",
          "value": 2023
        }
      },
      {
        "set": {
          "description": "Sets graduated to true",
          "field": "graduated",
          "value": true
        }
      },
      {
        "uppercase": {
          "field": "name"
        }
      }
    ]
  }
}