blob: c0b8eba55adadb7130a9b397114eca4209261609 [file] [log] [blame]
Claudine Chiu25f07be2016-06-27 16:21:21 +00001{
2 "type": "object",
3 "title": "host",
4 "required": [
5 "networkId",
6 "mac",
7 "vlan",
8 "ipAddresses",
9 "location"
10 ],
11 "properties": {
12 "networkId": {
13 "type": "int64",
14 "description": "Network identifier",
15 "example": 3
16 },
17 "mac": {
18 "type": "string",
19 "example": "46:E4:3C:A4:17:C8"
20 },
21 "vlan": {
22 "type": "string",
23 "example": "-1"
24 },
25 "ipAddresses": {
26 "type": "array",
27 "xml": {
28 "name": "hosts",
29 "wrapped": true
30 },
31 "items": {
32 "type": "string",
33 "example": "127.0.0.1"
34 }
35 },
36 "location": {
37 "type": "object",
38 "title": "location",
39 "required": [
40 "elementId",
41 "port"
42 ],
43 "properties": {
44 "elementId": {
45 "type": "string",
46 "example": "of:0000000000000002"
47 },
48 "port": {
49 "type": "string",
50 "example": "3"
51 }
52 }
53 }
54 }
55}