addlbpolicy

Use this method to creates an LB policy which specifies requests for which LB decision is taken based on order sequence specified in corresponding LB action

Syntax



Parameters

name

Name of the LB 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 LB 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 lb policy" or 'my lb policy').
This is mandatory parameter.

rule

Expression against which traffic is evaluated.
This is mandatory parameter.

actioN

Name of action to use if the request matches this LB 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. Available settings function as follows: * NOLBACTION - Does not consider LB actions in making LB decision. * RESET - Reset the request and notify the user, so that the user can resend the request. * DROP - Drop the request without sending a response to the user.

logaction

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

comment

Any type of information about this LB policy.

Return Value

Returns simpleResult

See Also