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