kapacitor flux task update
The kapacitor flux task update command updates a Kapacitor Flux task using a
specified file or stdin.
Usage
kapacitor flux task update [flags] [flux-script]Arguments
- flux-script: Flux script provided via stdin (
-).
Flags
| Flag | Description | |
|---|---|---|
-f | --file | Path to Flux script file |
-h | --help | Show command help |
-i | --id | Required: Flux task ID |
--json | Output data as JSON | |
--status | Update the task’s status (active or inactive) |
Examples
Update Flux task code using a file
kapacitor flux task update \
--id 000x00xX0xXXx00 \
--file /path/to/updated-task.fluxUpdate Flux task code via stdin
kapacitor flux task update --id 000x00xX0xXXx00 -
# Enter the Flux script in the stdin promptEnable or disable a Flux task
kapacitor flux task update \
--id 000x00xX0xXXx00 \
--status inactiveWas this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Kapacitor and this documentation. To find support, use the following resources: