删除管道 API
编辑删除管道 API
编辑删除一个或多个现有的摄取管道。
resp = client.ingest.delete_pipeline( id="my-pipeline-id", ) print(resp)
response = client.ingest.delete_pipeline( id: 'my-pipeline-id' ) puts response
const response = await client.ingest.deletePipeline({ id: "my-pipeline-id", }); console.log(response);
DELETE /_ingest/pipeline/my-pipeline-id
请求
编辑DELETE /_ingest/pipeline/<pipeline>
先决条件
编辑- 如果启用了 Elasticsearch 安全功能,您必须拥有
manage_pipeline
、manage_ingest_pipelines
或manage
集群权限 才能使用此 API。
路径参数
编辑-
<pipeline>
-
(必需,字符串) 用于限制请求的管道 ID 或管道 ID 的通配符表达式。
要删除集群中的所有摄取管道,请使用
*
值。
查询参数
编辑示例
编辑删除特定的摄取管道
编辑resp = client.ingest.delete_pipeline( id="pipeline-one", ) print(resp)
response = client.ingest.delete_pipeline( id: 'pipeline-one' ) puts response
const response = await client.ingest.deletePipeline({ id: "pipeline-one", }); console.log(response);
DELETE /_ingest/pipeline/pipeline-one
使用通配符表达式删除摄取管道
编辑resp = client.ingest.delete_pipeline( id="pipeline-*", ) print(resp)
response = client.ingest.delete_pipeline( id: 'pipeline-*' ) puts response
const response = await client.ingest.deletePipeline({ id: "pipeline-*", }); console.log(response);
DELETE /_ingest/pipeline/pipeline-*
删除所有摄取管道
编辑resp = client.ingest.delete_pipeline( id="*", ) print(resp)
response = client.ingest.delete_pipeline( id: '*' ) puts response
const response = await client.ingest.deletePipeline({ id: "*", }); console.log(response);
DELETE /_ingest/pipeline/*