github.com/akamai/AkamaiOPEN-edgegrid-golang/v8@v8.1.0/pkg/appsec/testdata/TestRule/Rule.json (about)

     1  {
     2      "action": "alert",
     3      "conditionException": {
     4          "conditions": [
     5              {
     6                  "type": "extensionMatch",
     7                  "extensions": [
     8                      "ex21",
     9                      "ex22"
    10                  ],
    11                  "positiveMatch": true
    12              },
    13              {
    14                  "type": "extensionMatch",
    15                  "extensions": [
    16                      "ext11",
    17                      "ext12"
    18                  ],
    19                  "positiveMatch": true
    20              },
    21              {
    22                  "type": "filenameMatch",
    23                  "filenames": [
    24                      "f11",
    25                      "f12"
    26                  ],
    27                  "positiveMatch": true
    28              },
    29              {
    30                  "type": "hostMatch",
    31                  "hosts": [
    32                      "h1.com",
    33                      "h2.com"
    34                  ],
    35                  "positiveMatch": true
    36              },
    37              {
    38                  "type": "ipMatch",
    39                  "ips": [
    40                      "11.11.11.11",
    41                      "22.22.22.22"
    42                  ],
    43                  "positiveMatch": true,
    44                  "useHeaders": true
    45              },
    46              {
    47                  "type": "uriQueryMatch",
    48                  "caseSensitive": true,
    49                  "name": "queryString",
    50                  "nameCase": true,
    51                  "positiveMatch": true,
    52                  "value": "queryValue",
    53                  "wildcard": true
    54              },
    55              {
    56                  "type": "requestHeaderMatch",
    57                  "header": "Accept",
    58                  "positiveMatch": true,
    59                  "value": "json",
    60                  "valueCase": true,
    61                  "valueWildcard": true
    62              },
    63              {
    64                  "type": "requestMethodMatch",
    65                  "methods": [
    66                      "GET",
    67                      "POST"
    68                  ],
    69                  "positiveMatch": true
    70              },
    71              {
    72                  "type": "pathMatch",
    73                  "paths": [
    74                      "/p1",
    75                      "/p2"
    76                  ],
    77                  "positiveMatch": true
    78              }
    79          ],
    80          "exception": {
    81              "headerCookieOrParamValues": [
    82                  "value1",
    83                  "value2"
    84              ],
    85              "specificHeaderCookieOrParamNameValue": {
    86                  "name": "requestHeaderName",
    87                  "selector": "REQUEST_HEADERS",
    88                  "value": "requestHeaderValue"
    89              },
    90              "specificHeaderCookieOrParamNames": [
    91                  {
    92                      "names": [
    93                          "v1",
    94                          "v2"
    95                      ],
    96                      "selector": "REQUEST_HEADERS"
    97                  },
    98                  {
    99                      "names": [
   100                          "c1",
   101                          "c2"
   102                      ],
   103                      "selector": "REQUEST_COOKIES"
   104                  },
   105                  {
   106                      "names": [
   107                          "r1",
   108                          "r2"
   109                      ],
   110                      "selector": "ARGS"
   111                  },
   112                  {
   113                      "names": [
   114                          "j1",
   115                          "j2"
   116                      ],
   117                      "selector": "JSON_PAIRS"
   118                  },
   119                  {
   120                      "names": [
   121                          "x1",
   122                          "x2"
   123                      ],
   124                      "selector": "XML_PAIRS"
   125                  }
   126              ],
   127              "specificHeaderCookieOrParamPrefix": {
   128                  "prefix": "Header_Prefix",
   129                  "selector": "XML_PAIRS"
   130              }
   131          }
   132      }
   133  }