Application Delivery (ADX)

Rules and Policies and Scripting Reference guide

by pmorrissey on ‎06-21-2009 09:12 PM (523 Views)

Rules, Policies and Scripting Reference guide

 

 

General guidelines: Rules are used to determine what field/value/pattern/data you want to check/test for. Policies are used to perform actions depending on the results of the rules. Below shows the rules/policies syntax that you can use. For actual script / csw examples, click here Sample Configuration Examples 101

 

HTTP Requests

 

Here is the syntax when using rules for http requests

 

csw-request rule syntax.png

Additions: cookie                      csw-rule <name> cookie <cookie_name> <test> <value> [case-insensitive]

 

 

Here is a list of test operators <test> that can be used in rules

csw-test operators.png

Here is a list of policy actions that can be performed on http requests

 

csw-policy actions.png

 

HTTP Responses

 

Here is the syntax when using rules for http responsescsw-response rule syntax.png

Here is the list of test operators than can be used

csw-test operators.png

Here is a list of policy actions that can be performed on responses

csw-policy actions response.png

 

Additional reference information

 

csw-reference-guide#1.png

 

 

Here is list of HTTP headers

csw-http headers.png

Here is a list of HTTP status codes

csw-http status codes.png

 

More information on using the offset command Reference: Using offset command

For some script and csw examples, click here: Sample Configuration Examples 101