POST /pipeline/launch
Creates a pipeline and prepares it for interactive use. If the pipeline
does not end with a sink, Tenzir adds an implicit output stream and
returns the created pipeline ID. If the pipeline already has a sink,
Tenzir returns deployable: true so the caller can deploy it explicitly.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Pipeline launch request.
object
The pipeline ID. If omitted, Tenzir generates a random ID.
Example
08446737-da9b-4787-8599-97d85c48c3bbThe pipeline definition.
Example
export | where fooThe human-readable name of the pipeline.
Example
interactive-queryWhether this pipeline is hidden.
Example
trueA duration string specifying the maximum time for this pipeline to
exist. No value means the pipeline is allowed to exist forever.
This parameter must be finite and defined if the hidden parameter is
true.
Example
5minFlags that specify on which state to restart the pipeline.
object
Autostart the pipeline upon creation.
Example
trueAutostart the pipeline upon completion.
Autostart the pipeline upon failure.
Flags that specify on which state to delete the pipeline.
object
Autodelete the pipeline upon completion.
Autodelete the pipeline upon failure.
Example
trueAutodelete the pipeline when it stops before completing.
The minimum time between automatic restarts after a pipeline error.
Example
500msWhether this pipeline is unstoppable.
The identifier for the cache operator, which is inserted only
when this parameter is provided.
Example
4ada2434-32asfe2sThe maximum number of events to keep in the cache operator.
Example
4000The time to live of the cache. Resets when reading from the cache.
Example
1minThe maximum time to live of the cache. Unlike the cache_read_timeout
parameter, this does not reset when reading from the cache.
Example
1hThe output stream identifier to create for reading events from this pipeline.
Example
4ada2434-32asfe2sThe maximum number of events to buffer for the output stream.
Example
4000Example
{ "definition": "export | where foo", "name": "interactive-query", "serve_id": "query-1", "serve_buffer_size": 4000}Responses
Section titled “ Responses ”The launch request was accepted.
Invalid arguments or invalid pipeline.
object
The error message.
Example
Invalid argumentsobject
Example
unknown option `--frobnify`object
A potentially empty label.
Example
this option does not existA region in the source code, defined by byte offsets.
object
Example
42Example
48object
Example
usageExample
file <path> [-f|--follow] [-m|--mmap] [-t|--timeout <duration>]Example
[1m[31merror[39m: unknown option `--frobnify`[0m