influx apply

    • InfluxDB 2.0.0+

    Authentication credentials

    Apply a template from a file
    1. influx apply --file path/to/template.json
    Apply a template from a URL
    1. influx apply --file https://raw.githubusercontent.com/influxdata/community-templates/master/docker/docker.yml
    Apply a stack that has associated templates
    Apply a template to a stack
    1. influx apply --file path/to/template.json --stack-id $STACK_ID
    Apply multiple template files together
    1. influx apply \
    2. --file path/to/template_2.yml
    Apply a template from stdin
    Apply all templates in a directory
    1. influx apply --file path/to/template_directory
    Recursively apply templates from a directory
    1. influx apply --recurse --file path/to/template_directory
    Apply templates from multiple sources
    Apply a template, but skip resources
    1. # The following example skips all buckets and the dashboard
    2. # whose metadata.name field matches "example-dashboard".
    3. # Filter format:
    4. # --filter=kind=Bucket
    5. # --filter=resource=Label:$Label_TMPL_NAME
    6. influx apply \
    7. --file path/to/template.yml \
    8. --filter resource=Dashboard:example-dashboard