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