获取管道
1.0 版引入
使用获取摄入管道 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"
}
}
]
}
}