Skip to content

appflow-policy

The following operations can be performed on "appflow-policy":

set| show| rm| rename| add| unset|

set appflow policy

Modifies the rule and/or action for an existing AppFlow policy. The rule for flow type can be changed only if the associated action is of NEUTRAL flow type.

Synopsis

set appflow policy [-rule ] [-action ] [-undefAction ] [-comment ]

Arguments

name Name of the policy to modify.

rule Expression or other value against which the traffic is evaluated. Must be a Boolean expression.

The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks.

action Name of the action to be associated with this policy.

undefAction Name of the appflow action to be associated with this policy when an undef event occurs.

comment Any comments about this policy.

Example

set appflow policy appflow_policy -rule "HTTP.REQ.HEADER(\"header\").CONTAINS(\"qh2\")"

show appflow policy

Displays information about all configured AppFlow policies, or detailed information about the specified policy.

Synopsis

show appflow policy []

Arguments

name Name of the policy about which to display detailed information.

Output

stateflag rule Expression to be used by AppFlow policy.

action AppFlow action associated with the policy.

undefAction AppFlow action associated with the policy on undefined evaluation result.

hits Number of hits.

undefHits Number of policy UNDEF hits.

activePolicy Indicates whether policy is bound or not.

boundTo Location where policy is bound.

priority Specifies the priority of the policy.

gotoPriorityExpression Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE.

labelType Type of policy label invocation.

labelName Name of the label to invoke if the current policy rule evaluates to TRUE.

description Description of the policy

comment Any comments about this policy.

bindPolicyType vserverType type builtin Flag to determine if policy is built-in or not

feature The feature to be checked while applying this config

devno count

Example

show appflow policy

rm appflow policy

Removes an AppFlow policy. (Cannot remove a policy that is bound to a policy label.)

Synopsis

rm appflow policy

Arguments

name Name of the policy to be removed.

Example

rm appflow policy appflow_policy_1

rename appflow policy

Renames an AppFlow policy.

Synopsis

rename appflow policy @ @

Arguments

name Existing name of the policy.

newName New name for the policy. Must begin with an ASCII alphabetic or underscore (_)character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters.

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 appflow policy" or 'my appflow policy').

Example

rename appflow policy old_name new_name

add appflow policy

Adds an Appflow policy. The policy specifies the rule based on which the traffic is evaluated, and the action to be taken if the rule returns "TRUE".

Synopsis

add appflow policy [-undefAction ] [-comment ]

Arguments

name Name for the policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters.

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 appflow policy" or 'my appflow policy').

rule Expression or other value against which the traffic is evaluated. Must be a Boolean expression.

The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks.

action Name of the action to be associated with this policy.

undefAction Name of the appflow action to be associated with this policy when an undef event occurs.

comment Any comments about this policy.

Example

add appflow policy appflow_pol "HTTP.REQ.HEADER(\"header\").CONTAINS(\"qh3\")" appflow_act

unset appflow policy

Use this command to remove appflow policy settings.Refer to the set appflow policy command for meanings of the arguments.

Synopsis

unset appflow policy [-undefAction] [-comment]

Was this article helpful?