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