Full netOrc schema for /nodes, with expanded references
var Schema = [
//****************************** GATEWAYS **************************
{
id: '54a038fa1a2b9a0194322b3f',
nid: 41882,
type: {
_id: 'gateway',
name: 'Router'
},
status: 'ready',
location: {
_id: 'sanjose1',
name: 'San Jose'
},
pos: {
x: 208.992345,
y: 273.053211
},
links: [641372, 641370],
options: {
allowed: [641372, 641370, 641232],
}
},
//****************************** VLANS **************************
{
id: '54a039021a2b9a0194322b40',
nid: 641372,
type: {
_id: 'vlan',
name: 'VLAN'
},
status: 'ready',
location: {
_id: 'sanjose1',
name: 'San Jose'
},
pos: {
x: 595.98896,
y: 56.377057
}
},
//****************************** GUESTS **************************
{
id: '54a040fa1a2b9a0194323f6b',
nid: 6536064,
type: {
_id: 'guest',
name: 'Server'
},
status: 'ready',
location: { // * MISSING FROM API (need for filtering)
_id: 'sanjose1',
name: 'San Jose'
},
links: [641370, 641232],
pos: {
x: 482.664139,
y: 340.386773
},
options: {
fqdn: 'test2.ibmsldemo.com',
ip: '198.23.93.250',
}
}
];