Search
Varnish Controller

vcli rejectroutes update

Update one or more reject routes

Synopsis

Update existing reject routes. Use flags to specify what should be updated.

vcli rejectroutes update [RejectRoute-id,... | -f] [flags]

Options

      --decision string                    Reject based on given decision (e.g. cidr:1)
      --dns-cname string                   DNS response CNAME for rejected DNS requests (FQDN)
      --dns-ipv4 string                    DNS response IPv4 (A records) for rejected DNS requests (comma separated IPs)
      --dns-ipv6 string                    DNS response IPv6 (AAAA records) for rejected DNS requests (comma separated IPs)
      --dns-reject-all                     Reject all DNS requests, no matter of decision lookup.
  -f, --filter stringToString              Filter based on attributes, '*' act as wildcard (default [])
  -h, --help                               help for update
      --http-reject-all                    Reject all HTTP requests, no matter of decision lookup.
      --http-resp-body string              HTTP response body for rejected HTTP requests.
      --http-resp-code int                 HTTP response code for rejected HTTP requests. (default 403)
      --http-resp-headers stringToString   HTTP response headers for rejected HTTP requests. (default [])
      --http-resp-url string               HTTP response URL set as location header (used together with HTTP 302 redirect)
  -n, --name string                        Name
      --plugin-response                    Override response with the response returned by the plugin used for this rejectroute, if active
  -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