Search
Varnish Controller

vcli routingrule

Handle routing-rules

Synopsis

Handle routing rules such as listing, add, delete or update.

Examples:

vcli routingrules list
vcli routingrules ls -f id=1
vcli routingrules ls -f name="MyRoutingRule*"
vcli routingrules add myrr --http --dns --lookup-order=random
vcli routingrules update 1 --name newname --dns=false
vcli routingrules update 1 --extroutes 1,2
vcli routingrules delete 1
vcli routingrules inspect 1

Options

  -h, --help   help for routingrule

Options inherited from parent commands

  -c, --config string   configuration file for the CLI (default ~/.vcli.yml)
                        Could also be set via VARNISH_CONTROLLER_CLI_CONFIG=/path/to/config.yml
      --csv             Output the response table as CSV format.
  -j, --json            Output the response table as JSON format.

SEE ALSO