ca policy¶
The following operations can be performed on "ca policy":
add | show | rm | set | unset | rename
add ca policy¶
Creates a content accelerator policy. This policy must later be invoked globally or at a content switching or load balancing virtual server.
Synopsys¶
add ca policy <name> -rule <expression> -action <string> [-undefAction <string>] [-comment <string>] [-logAction <string>]
Arguments¶
name
Name for the content accelerator 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. Can be changed after the policy is created.
rule
Expression that determines which requests or responses match the content accelerator policy. When specifying the rule in the CLI, the description must be enclosed within double quotes.
action
Name of content accelerator action to be executed when the rule is evaluated to true.
undefAction
comment
Information about the content accelerator policy.
logAction
Name of messagelog action to use when a request matches this policy.
show ca policy¶
Displays information about a content accelerator policy. If no name is specified, this command displays information of all available content accelerator policies.
Synopsys¶
show ca policy [<name>]
Arguments¶
name
Name of the content accelerator policy to be displayed.
Outputs¶
stateflag
undefAction
Undef Action associated with the policy.
activePolicy
Indicates whether policy is bound or not.
boundTo
Location where policy is bound
gotoPriorityExpression
Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE.
vserverType
action
Content accelerator action associated with the policy.
rule
Rule of the policy.
hits
Number of hits.
undefHits
Number of Undef hits.
isDefault
A value of true is returned if it is a default content accelerator policy.
priority
Specifies the priority of the policy.
bindPolicyType
comment
Information about the content accelerator policy.
logAction
Name of messagelog action to use when a request matches this policy.
devno
count
Example¶
show ca policy
rm ca policy¶
Removes a content accelerator policy.
Synopsys¶
rm ca policy <name>
Arguments¶
name
Name of the content accelerator policy to be removed.
Example¶
rm ca policy pol9
set ca policy¶
Modifies the parameters of a content accelerator policy.
Synopsys¶
set ca policy <name> [-rule <expression>] [-action <string>] [-comment <string>] [-logAction <string>] [-undefAction <string>]
Arguments¶
name
Name of the content accelerator policy to be modified.
rule
Expression that determines which requests or responses match the content accelerator policy. When specifying the rule in the CLI, the description must be enclosed within double quotes.
action
Name of content accelerator action to be executed when the rule is evaluated to true.
comment
Information about the content accelerator policy.
logAction
Name of messagelog action to use when a request matches this policy.
undefAction
Example¶
set ca policy pol9 -rule "HTTP.REQ.HEADER(\\"header\\").CONTAINS(\\"qh2\\")"
unset ca policy¶
Removes the settings of an existing content accelerator policy. Attributes for which a default value is available revert to their default values. See the set content accelerator policy command for a description of the parameters..Refer to the set ca policy command for meanings of the arguments.
Synopsys¶
unset ca policy <name> [-comment] [-logAction] [-undefAction]
Example¶
unset ca policy pol9 -undefAction
rename ca policy¶
Renames content accelerator policy.
Synopsys¶
rename ca policy <name>@ <newName>@
Arguments¶
name
Existing name of the content accelerator policy.
newName
New name for the content accelerator policy
Example¶
rename ca policy oldname newname