| addpolicyexpression |
Use this method to creates a classic or default syntax named expression, which can be used in multiple policies. For example, you can create the following named expressions, ExpressionA and ExpressionB: ExpressionA: http.req.body(100).contains("A") ExpressionB: http.req.body(100).contains("B") You could then create an expression of the form: |
Syntax |
Parameters |
name |
Unique name for the expression. Not case sensitive. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Must not begin with 're' or 'xp' or be a word reserved for use as an expression qualifier prefix (such as HTTP) or enumeration value (such as ASCII). Must not be the name of an existing named expression, pattern set, dataset, stringmap, or HTTP callout. This is mandatory parameter. |
value |
Expression string. For example: http.req.body(100).contains("this"). This is mandatory parameter. |
comment |
Any comments associated with the expression. Displayed upon viewing the policy expression. |
clientsecuritymessage |
Message to display if the expression fails. Allowed for classic end-point check expressions only. |
Return Value |
Returns simpleResult |
See Also |