Variables are named objects that store information in the form of tokens. These tokens are used within and across different transactions on the NetScaler Appliance for internal computation and policy processing.
The NetScaler appliance supports creation of variables of the following types:
-
Singleton variables. Can have a single value of one of the following types: ulong and text (max-size). The ulong type is an unsigned 64-bit integer, the text type is a sequence of bytes, and max-size is the maximum number of bytes in the sequence.
-
Map variables. Maps hold values associated with keys: each key-value pair is called a map entry. The key for each entry is unique within the map. Maps are specified as follows:
map (key_type, value_type, max-values).
where,
-
key_type is the data type of the key. It is of type text (max-size).
-
value_type is the data type of the values of the map. It can be of type ulong or text (max-size).
-
max-values is the maximum number of entries that the map can contain. It is of type ulong.
Values for these variables are set using assignments which must be invoked on policy actions.