Handle Reject routing targets
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:
rejectroutes ls
rejectroutes ls -f id=1
rejectroutes ls -f name="MyRejectRoute*"
rejectroutes add myRejectRoute --decision cidr:1
rejectroutes add myRejectRoute --decision geolocation.1 --http-resp-code 403 --http-resp-body "Not found" --dns-ipv4 "1.2.3.4"
rejectroutes update 1 --name newname
rejectroutes update 1 --http-resp-headers "HeaderKey1=Value1","HeaderKey2=Value2"
rejectroutes delete 1
rejectroutes inspect 1
-h, --help help for rejectroutes
-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.