blob: 001867ef5a8261a6c2140ed9ab8e1c65a2f400de [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 },
54 "location": {
55 "type": "object",
56 "title": "location",
57 "required": [
58 "elementId",
59 "port"
60 ],
61 "properties": {
62 "elementId": {
63 "type": "string",
64 "example": "of:0000000000000002"
65 },
66 "port": {
67 "type": "string",
68 "example": "3"
69 }
70 }
71 }
72 }
73 }
74 }
75 }
76}