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