| addcrpolicy |
Use this method to creates a cache redirection policy. To associate the new policy with a cache redirection virtual server, use the bind cr vserver method. |
Syntax |
Parameters |
policyname |
Name for the cache redirection policy. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Cannot be changed after the policy is created.
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 policy" or 'my policy'). This is mandatory parameter. |
rule |
Expression, or name of a named expression, against which traffic is evaluated.
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. This is mandatory parameter. |
actioN |
Name of the built-in cache redirection action: CACHE/ORIGIN. |
logaction |
The log action associated with the cache redirection policy |
builtin |
feature |
The feature to be checked while applying this config |
Return Value |
Returns simpleResult |
See Also |