Configuration Reference
The Traffic Policy configuration reference for this action.Supported Phases
on_http_request
, on_tcp_connect
Type
close-connection
Configuration Fields
This action does not have any configuration fields.
Behavior
When this action is executed, connection to the endpoint is closed immediately. This can be useful for dealing with DDoS attacks.Examples
Basic Example
This basic example configuration will guide you through setting up an endpoint on ngrok (hotdog.ngrok.app
) and closing the connection to the endpoint.
1
Save the following traffic policy document to a file called policy.yml
policy.yml
2
Start the endpoint with the traffic policy
3
Send a request to the endpoint
Action Result Variables
The following variables are made available for use in subsequent expressions and CEL interpolations after the action has run. Variable values will only apply to the last action execution, results are not concatenated.This action does not set any variables after it has been executed.