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:
Values for these variables are set using assignments which must be invoked on policy actions.
Note: Variables are not yet supported in a high-availability setup or in a cluster.
A map variable or a singleton variable can have a global scope. Alternatively, the scope of a singleton variable can be limited to a single transaction.
- Global Scope Variable - A variable with global scope (the default) has only one instance, and that instance has the same value(s) across all cores of a NetScaler appliance and across all nodes of a cluster or HA configuration. Global variable values exist until they are explicitly deleted, until they expire, or until a standalone appliance is restarted or all nodes of a cluster or HA configuration are restarted.
- Transaction Scope Variable - A variable with transaction scope has a separate instance, with its own value, for each transaction processed by the NetScaler appliance. When the transaction processing is complete, the transaction variable value is deleted.
Note: Transaction scope variables are available in NetScaler release 10.5.e or later.