Claudine Chiu | 25f07be | 2016-06-27 16:21:21 +0000 | [diff] [blame] | 1 | { |
| 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 | }, |
Charles Chan | cd06c69 | 2017-04-27 20:46:06 -0700 | [diff] [blame] | 41 | "locations": { |
| 42 | "type": "array", |
| 43 | "items": { |
| 44 | "type": "object", |
| 45 | "title": "location", |
| 46 | "required": [ |
| 47 | "elementId", |
| 48 | "port" |
| 49 | ], |
| 50 | "properties": { |
| 51 | "elementId": { |
| 52 | "type": "string", |
| 53 | "example": "of:0000000000000002" |
| 54 | }, |
| 55 | "port": { |
| 56 | "type": "string", |
| 57 | "example": "3" |
| 58 | } |
Claudine Chiu | 25f07be | 2016-06-27 16:21:21 +0000 | [diff] [blame] | 59 | } |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |