put-pipeline.asciidoc 1001 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [[put-pipeline-api]]
  2. === Put Pipeline API
  3. The put pipeline API adds pipelines and updates existing pipelines in the cluster.
  4. [source,js]
  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. // CONSOLE
  20. //////////////////////////
  21. [source,js]
  22. --------------------------------------------------
  23. DELETE /_ingest/pipeline/my-pipeline-id
  24. --------------------------------------------------
  25. // CONSOLE
  26. // TEST[continued]
  27. [source,console-result]
  28. --------------------------------------------------
  29. {
  30. "acknowledged": true
  31. }
  32. --------------------------------------------------
  33. //////////////////////////
  34. NOTE: The put pipeline API also instructs all ingest nodes to reload their in-memory representation of pipelines, so that
  35. pipeline changes take effect immediately.