| addcontentinspectioncallout |
Use this method to adds an expression element that, when evaluated, sends a request to Content Inspection service and receives a response from the service. Can be used to obtain additional information for use in evaluating policy rules and other expressions. The expression prefix SYS.CI_CALLOUT invokes a Content Inspection callout. |
Syntax |
Parameters |
name |
Name for the Content Inspection callout. 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 callout. This is mandatory parameter. |
type |
Type of the Content Inspection callout. It must be one of the following:
* ICAP - Sends ICAP request to the configured ICAP server. This is mandatory parameter. |
profilename |
Name of the Content Inspection profile. The type of the configured profile must match the type specified using -type argument. |
servername |
Name of the load balancing or content switching virtual server or service to which the Content Inspection request is issued. Mutually exclusive with server IP address and port parameters. The service type must be TCP or SSL_TCP. If there are vservers and services with the same name, then vserver is selected. |
serverip |
IP address of Content Inspection server. Mutually exclusive with the server name parameter. Minimum value = 1. |
serverport |
Port of the Content Inspection server. Default value = 1344. Minimum value = 1. Maximum value = 65535. |
returntype |
Type of data that the target callout agent returns in response to the callout.
Available settings function as follows:
* TEXT - Treat the returned value as a text string.
* NUM - Treat the returned value as a number.
* BOOL - Treat the returned value as a Boolean value.
Note: You cannot change the return type after it is set. This is mandatory parameter. |
resultexpr |
Expression that extracts the callout results from the response sent by the CI callout agent. Must be a response based expression, that is, it must begin with ICAP.RES. The operations in this expression must match the return type. For example, if you configure a return type of TEXT, the result expression must be a text based expression, as in the following example: icap.res.header("ISTag"). This is mandatory parameter. |
comment |
Any comments to preserve information about this Content Inspection callout. |
Return Value |
Returns simpleResult |
See Also |