put-pipeline.asciidoc 989 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [[put-pipeline-api]]
  2. === Put Pipeline API
  3. The put pipeline API adds pipelines and updates existing pipelines in the cluster.
  4. [source,console]
  5. --------------------------------------------------
  6. PUT _ingest/pipeline/my-pipeline-id
  7. {
  8. "description" : "describe pipeline",
  9. "processors" : [
  10. {
  11. "set" : {
  12. "field": "foo",
  13. "value": "bar"
  14. }
  15. }
  16. ]
  17. }
  18. --------------------------------------------------
  19. //////////////////////////
  20. [source,console]
  21. --------------------------------------------------
  22. DELETE /_ingest/pipeline/my-pipeline-id
  23. --------------------------------------------------
  24. // TEST[continued]
  25. [source,console-result]
  26. --------------------------------------------------
  27. {
  28. "acknowledged": true
  29. }
  30. --------------------------------------------------
  31. //////////////////////////
  32. NOTE: The put pipeline API also instructs all ingest nodes to reload their in-memory representation of pipelines, so that
  33. pipeline changes take effect immediately.