blob: f838b60042e1298b07691753a9f807054c73bc77 [file] [log] [blame]
Jian Li260231e2021-01-13 18:05:00 +09001{
2 "type": "object",
3 "title": "regions",
4 "required": [
5 "regions"
6 ],
7 "properties": {
8 "regions": {
9 "type": "array",
10 "xml": {
11 "name": "regions",
12 "wrapped": true
13 },
14 "items": {
15 "type": "object",
16 "description": "A network object.",
17 "required": [
18 "networkId",
19 "type",
20 "name",
21 "segmentId",
22 "gatewayIp",
23 "cidr",
24 "mtu"
25 ],
26 "properties": {
27 "networkId": {
28 "type": "string",
29 "example": "sona-network",
30 "description": "The ID of the attached network."
31 },
32 "type": {
33 "type": "string",
34 "example": "VXLAN",
35 "description": "Type of kubernetes network."
36 },
37 "name": {
38 "type": "string",
39 "example": "sona-network",
40 "description": "The name of network."
41 },
42 "segmentId": {
43 "type": "string",
44 "example": "1",
45 "description": "Segment ID of tenant network."
46 },
47 "gatewayIp": {
48 "type": "string",
49 "example": "10.10.10.1",
50 "description": "The IP address of the gateway."
51 },
52 "cidr": {
53 "type": "string",
54 "example": "10.10.10.0/24",
55 "description": "The CIDR of this network."
56 },
57 "mtu": {
58 "type": "integer",
59 "example": 1500,
60 "description": "The Maximum Transmission Unit of this network."
61 }
62 }
63 }
64 }
65 }
66}