Search
Varnish Controller

vcli routingrule update

Update one or more routing-rules

Synopsis

Update an existing routingRule. Use flags to specify what should be updated.

vcli routingrule update [routingRule-id,... | -f] [flags]

Options

      --clear-exclude-domains           Clear all exclude domains for the routing rule
      --clear-extroutes                 Clear all external routes for the routing rule
      --clear-headers                   Clear HTTP router response headers
      --clear-health-headers            Clear health headers for the routing rule
      --debug-header string             Only respond with debug headers if this header exists in the request.
      --debug-headers                   Add debug headers to HTTP redirects
      --dns                             Enable DNS routing (default true)
      --dns-record-ttl string           DNS Record TTL (default "60s")
      --dns-replies int                 Define how many DNS records will be replied (default 1)
  -e, --exclude-domains string          Domains to exclude for health checks and routing
      --extroutes string                Comma separated external route IDs
  -f, --filter stringToString           Filter based on attributes, '*' act as wildcard (default [])
      --headers stringToString          HTTP router response headers (default [])
      --health-headers stringToString   Health check headers (default [])
      --health-interval string          Interval for checking health (default "3s")
      --health-method string            Health check method (default "GET")
      --health-path string              Health check path (default "/")
      --health-status int               Expected health check status (default 200)
      --health-threshold int            Health check threshold of window size (before becoming healthy) (default 3)
      --health-timeout string           Timeout for health checks (default "3s")
      --health-window-size int          Health check window size (sliding window) (default 7)
  -h, --help                            help for update
      --history-ttl string              History TTL before endpoint lookup happen again (default "5s")
      --http                            Enable HTTP redirect routing (default true)
      --lookup-order string             Comma separated order of routing types for node selection(History,Tags,GeoIP,Random,External,LeastUtilized,Plugin:<id>,ASN:<id>,CIDR:<id>,Geolocation:<id>,RegExp:<id>,Reject:<id>)
  -n, --name string                     Name
      --retry-after string              Retry-after header duration (default "5s")
      --start-healthy                   Assume health probes to be healthy on start
      --verify-tls                      Verify TLS for health probes (default true)
  -y, --yes                             Perform operation without confirmation

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