UNPKG

on-http-y1

Version:
53 lines (52 loc) 1.86 kB
{ "@odata.context" : "<%= basepath %>/$metadata#Managers/Members/$entity", "@odata.id": "<%= url %>", "@odata.type": "#Manager.1.0.0.Manager", "Oem": {}, "Id": "<%= identifier %>", "Name": "Manager", "ManagerType": "<%= managerType %>", "Links": { "ManagerForServers@odata.count": <%= systems.length %>, "ManagerForServers": [ <% systems.forEach(function(system, i, arr) { %> { "@odata.id": "<%= basepath %>/Systems/<%= system %>" } <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %> <% }); %> ], "ManagerForChassis@odata.count": <%= chassis.length %>, "ManagerForChassis": [ <% chassis.forEach(function(chassis, i, arr) { %> { "@odata.id": "<%= basepath %>/Chassis/<%= chassis %>" } <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %> <% }); %> ] }, <% if( typeof mcInfo !== 'undefined' ) { %> "Model": "<%= mcInfo['Product Name'] %>", "FirmwareVersion": "<%= mcInfo['Firmware Revision'] %>", <% } %> "Status" : {}, "EthernetInterfaces" : { "@odata.id": "<%= url %>/EthernetInterfaces" } <% if( typeof networkProtocol !== 'undefined') { %> , "NetworkProtocol" : { <% if (typeof networkProtocol.hostname !== 'undefined') { %> "HostName": "<%= networkProtocol.hostname %>", "FQDN": "<%= networkProtocol.fqdn %>", <% } %> <% networkProtocol.services.forEach(function(service, i, arr) { %> "<%= service.name %>" : { "ProtocolEnabled" : <%= service.enabled %>, "Port": <%= service.port %> } <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %> <% }); %> } <% } %> }