pw platform firewall evaluate
pw platform firewall evaluate
Check whether the firewall would block a request, without sending it
Synopsis
Run a request through the firewall the answering API server enforces, and list every rule it matches. The request is not forwarded, so it changes nothing.
pw platform firewall evaluate [-X method] [-H 'Name: value']... [-d body] [--client-ip address] <path> [flags]Examples
pw platform firewall evaluate -H 'User-Agent: badbot' /api/ping
pw platform firewall evaluate -X POST -H 'Content-Type: application/json' -d '{"name":"<script>"}' /api/usersOptions
--client-ip string Address the request comes from; absent uses one nothing blocks
-d, --data string Request body; give a Content-Type header too, so it is parsed the way the server would parse it
-H, --header stringArray Header, as 'Name: value'; repeat for more
-h, --help help for evaluate
-o, --output string Output format (table, json) (default "table")
-X, --request string HTTP method (default "GET")Options inherited from parent commands
--context string The context to use. Overrides PW_CONTEXT environment variable and current context from config.
--platform-host string The Parallel Works ACTIVATE platform host to use. Overrides PW_PLATFORM_HOST environment variable and the current context's server.
-v, --verbose Enable verbose loggingSEE ALSO
- pw platform firewall - Manage the platform firewall