blob: 4cd7c9ebc9429f5d2e461af7e71f708fb05bedbd [file] [log] [blame]
Jian Lib45ffda2019-10-23 14:05:32 +09001{
2 "type": "object",
3 "required": [
4 "type",
5 "criterion"
6 ],
7 "properties": {
8 "type": {
9 "type": "string",
10 "example": "all"
11 },
12 "criterion": {
13 "type": "object",
14 "required": [
15 "srcIp",
16 "dstIp",
17 "ipProto",
18 "srcPort",
19 "dstPort"
20 ],
21 "properties": {
22 "srcIp": {
23 "type": "string",
24 "example": "10.20.1.1"
25 },
26 "dstIp": {
27 "type": "String",
28 "example": "10.20.1.2"
29 },
30 "ipProto": {
31 "type": "string",
32 "example": "tcp"
33 },
34 "srcPort": {
35 "type": "integer",
36 "example": 8080
37 },
38 "dstPort": {
39 "type": "integer",
40 "example": 9090
41 }
42 }
43 }
44 }
45}