Home > Configuration > Bot > addbotpolicy

addbotpolicy

Use this method to creates a bot policy.

Syntax



Parameters

name

Name for the bot policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the bot policy is added. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my bot policy" or 'my bot policy').
This is mandatory parameter.

rule

Expression that the policy uses to determine whether to apply bot profile on the specified request.
This is mandatory parameter.

profilename

Name of the bot profile to apply if the request matches this bot policy.
This is mandatory parameter.

undefaction

Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an internal error condition.

comment

Any type of information about this bot policy.

logaction

Name of the messagelog action to use for requests that match this policy.

Return Value

Returns simpleResult

See Also