blob: b29e828d1393077180f3bfe73ef0cb65f32ad512 [file] [log] [blame]
andrea1ce2bc82015-11-18 16:58:10 -08001{
2 "type": "object",
3 "title": "host",
4 "required": [
5 "id",
6 "mac",
7 "vlan",
8 "ipAddresses",
9 "location"
10 ],
11 "properties": {
12 "id": {
13 "type": "string",
14 "example": "46:E4:3C:A4:17:C8/-1"
15 },
16 "mac": {
17 "type": "string",
18 "example": "46:E4:3C:A4:17:C8"
19 },
20 "vlan": {
21 "type": "string",
22 "example": "-1"
23 },
24 "ipAddresses": {
25 "type": "array",
26 "xml": {
27 "name": "hosts",
28 "wrapped": true
29 },
30 "items": {
31 "type": "string",
32 "example": "127.0.0.1"
33 }
34 },
Charles Chancd06c692017-04-27 20:46:06 -070035 "locations": {
36 "type": "array",
37 "items": {
38 "type": "object",
39 "title": "location",
40 "required": [
41 "elementId",
42 "port"
43 ],
44 "properties": {
45 "elementId": {
46 "type": "string",
47 "example": "of:0000000000000002"
48 },
49 "port": {
50 "type": "string",
51 "example": "3"
52 }
andrea1ce2bc82015-11-18 16:58:10 -080053 }
54 }
55 }
56 }
57}