blob: 979a3f704b8a5163f9dd06db1ff2a098f3bdaf4d [file] [log] [blame]
Claudine Chiu25f07be2016-06-27 16:21:21 +00001{
2 "type": "object",
3 "title": "hosts",
4 "required": [
5 "hosts"
6 ],
7 "properties": {
8 "hosts": {
9 "type": "array",
10 "xml": {
11 "name": "hosts",
12 "wrapped": true
13 },
14 "items": {
15 "type": "object",
16 "title": "host",
17 "required": [
18 "networkId",
19 "id",
20 "mac",
21 "vlan",
22 "ipAddresses",
23 "location"
24 ],
25 "properties": {
26 "networkId": {
27 "type": "int64",
28 "description": "Network identifier",
29 "example": 3
30 },
31 "id": {
32 "type": "string",
33 "example": "46:E4:3C:A4:17:C8/-1"
34 },
35 "mac": {
36 "type": "string",
37 "example": "46:E4:3C:A4:17:C8"
38 },
39 "vlan": {
40 "type": "string",
41 "example": "-1"
42 },
43 "ipAddresses": {
44 "type": "array",
45 "xml": {
46 "name": "hosts",
47 "wrapped": true
48 },
49 "items": {
50 "type": "string",
51 "example": "127.0.0.1"
52 }
53 },
Charles Chancd06c692017-04-27 20:46:06 -070054 "locations": {
55 "type": "array",
56 "items": {
57 "type": "object",
58 "title": "location",
59 "required": [
60 "elementId",
61 "port"
62 ],
63 "properties": {
64 "elementId": {
65 "type": "string",
66 "example": "of:0000000000000002"
67 },
68 "port": {
69 "type": "string",
70 "example": "3"
71 }
Claudine Chiu25f07be2016-06-27 16:21:21 +000072 }
73 }
74 }
75 }
76 }
77 }
78 }
79}