Search
Varnish Controller

vcli rejectroutes

Handle Reject routing targets

Synopsis

Handle Reject routing targets, such as listing, add, delete or update.

Reject route is a way to reject routing requests, with a custom response or with default response for both HTTP and DNS.

Examples:

vcli rejectroutes ls
vcli rejectroutes ls -f id=1
vcli rejectroutes ls -f name="MyRejectRoute*"
vcli rejectroutes add myRejectRoute --decision cidr:1
vcli rejectroutes add myRejectRoute --decision geolocation.1 --http-resp-code 403 --http-resp-body "Not found" --dns-ipv4 "1.2.3.4"
vcli rejectroutes update 1 --name newname
vcli rejectroutes update 1 --http-resp-headers "HeaderKey1=Value1","HeaderKey2=Value2"
vcli rejectroutes delete 1
vcli rejectroutes inspect 1

Options

  -h, --help   help for rejectroutes

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


®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203