Allow List Rules File Reference
You can define rules using a CSV file. This topic provides a reference to acceptable data for each rule argument, and demonstrates the format of the CSV rules.
Argument index |
Parameter name |
Required/ Optional |
Sample value |
---|---|---|---|
0 |
Url |
Required |
protocol://host[:port][/path] where
|
1 |
Deployment |
Optional |
Name of the deployment that uses this rule. Required when you have more than one deployment, otherwise supply an empty argument. |
2 |
Optional |
Comma-delimited list of HTTP methods, optionally in double-quotes, for example: "GET,PUT" |
|
3 |
Optional |
exact or prefix. Default is prefix. |
|
4 |
Optional |
Text description of the rule. Enclose with double quotes if there are spaces. |
Example List Rules CSV File
Url,Deployment,HttpMethods,MatchType,Description
https://myServer1:8443/myPath1,myDomain1,GET,,"First Rule"
http://myServer2:8000/myPath2,myDomain200,"GET,PUT",exact,
https://myServer3:8080/myPath3,myDomain1,,prefix,"Third Rule"
https://myServer4/myPath4,myDomain1,,prefix,"Fourth Rule"
http://myServer5/myPath5,myDomain1,,prefix,"Fifth Rule"
-
List the parameter names (as shown) in the first line of the file
-
One rule per line, one line per rule
-
Separate arguments with commas
-
Correctly order the rule values as shown in the table above
-
Enclose values that have spaces in them with double quotes