blob: 235a0833a7a76391db01e51c24c07a9d5a350ee6 [file] [log] [blame]
andrea1ce2bc82015-11-18 16:58:10 -08001{
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 "id",
19 "mac",
20 "vlan",
21 "ipAddresses",
22 "location"
23 ],
24 "properties": {
25 "id": {
26 "type": "string",
27 "example": "46:E4:3C:A4:17:C8/-1"
28 },
29 "mac": {
30 "type": "string",
31 "example": "46:E4:3C:A4:17:C8"
32 },
33 "vlan": {
34 "type": "string",
35 "example": "-1"
36 },
37 "ipAddresses": {
38 "type": "array",
39 "xml": {
40 "name": "hosts",
41 "wrapped": true
42 },
43 "items": {
44 "type": "string",
45 "example": "127.0.0.1"
46 }
47 },
48 "location": {
49 "type": "object",
50 "title": "location",
51 "required": [
52 "elementId",
53 "port"
54 ],
55 "properties": {
56 "elementId": {
57 "type": "string",
58 "example": "of:0000000000000002"
59 },
60 "port": {
61 "type": "string",
62 "example": "3"
63 }
64 }
65 }
66 }
67 }
68 }
69 }
70}