Starting with NSX Advanced Load Balancer release 20.1.3, string groups are supported in addition to the match value pattern as mentioned in the previous section. The string group consists of the followings:
String Group – UUID of the string group containing key used in the match element.
Key – PCRE-supported regular expression.
Navigate to Templates > WAF > WAF Policy > Positive Security tab.
The option to use string groups is available under Match Elements while creating a New Argument rule is as shown below:
For the string group, select the default System-PSMGroup-Types from the drop-down or create a new string group.
For the default System-PSMGroup-Types, select one of the KEY NAMES as shown below.
To create a new string group, select create from the drop-down as shown below.
Provide the name, enable the checkbox for Key Value Pair.
Provide the name of new key and enter a PCRE supported expression under the Value field, and click on the Add Map option as shown below:
Provide the name of the key created in the previous step as shown below.
The maximum value of the string groups that NSX Advanced Load Balancer supports is 100. A string group supports a maximum of 1000 key values.