This documentation provides the expressions that can be used to create NetScaler policies.
To use this documentation, click one of the prefixes listed below. A prefix is the starting point for creating an expression and it signifies the type of traffic to be evaluated. After clicking a prefix, select an expression from the list of available expressions and click the "Returns" link to view the expressions you can further apply on the data.
Examples...Prefixes
| ANALYTICS | Provides access to analytics information and operations. |
| CLIENT | Designates an expression that refers to the client. This is the starting point for access into parameters such as Ether and SSL. |
| CONNECTION | Designates an expression that refers to network packet irrespective of flow |
| DIAMETER | Models the DIAMETER message. |
| DNS | Models the DNS message. |
| EXTEND | Extends the target area around the matched pattern. |
| HTTP | Models the HTTP message. |
| MSSQL | Models the MSSQL protocol. |
| MYSQL | Models the MYSQL protocol. |
| ORACLE | Models the ORACLE protocol |
| SERVER | Designates an expression that refers to the server. This is the starting point for access into parameters such as Ether and SSL. |
| SIP | Models the SIP protocol. |
| SYS | Designates an expression that refers to the NetScaler, rather than the client or server. |
| TARGET | Refers to the matched pattern. |
| TEXT | Operates on selected text. |
| URL | URL provides operations for parsing and operating on the URL. The supported format is [<protocol>://<hostname>]<path>[?<query>]. The Text object backing a HTTP URL object has the Text Mode set to URLENCODED by default. |
Example 1: To append the string "ABCDE" to the body of an HTTP request.
|
Operation |
Expression formed |
|---|---|
| 1. Click HTTP. | HTTP |
| 2. Click the return type of the REQ expression. | HTTP.REQ |
| 3. Click the return type of BODY expression you want. | HTTP.REQ.BODY |
| 4. Select the append expression and specify the string. | HTTP.REQ.BODY.APPEND("ABCDE") |
Example 2: To check whether the DIAMETER connection is a client connection.
|
Operation |
Expression formed |
|---|---|
| 1. Click DIAMETER. | DIAMETER |
| 2. Click the return type of the IS_CLIENT expression. | DIAMETER.IS_CLIENT |
If the value returned is YES then this is a client connection.
Example 3: To retrieve the command code of a DIAMETER request.
|
Operation |
Expression formed |
|---|---|
| 1. Click DIAMETER. | DIAMETER |
| 2. Click the return type of the REQ expression. | DIAMETER.REQ |
| 3. Click the return type of the COMMAND_CODE expression. | DIAMETER.REQ.COMMAND_CODE |