RackHD/on-http

View on GitHub
data/views/redfish-1.0/redfish.1.0.0.manager.1.0.0.json

Summary

Maintainability
Test Coverage
{
    "@odata.context" : "<%= basepath %>/$metadata#Manager.Manager",
    "@odata.id": "<%= url %>",
    "@odata.type": "#Manager.v1_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" : {},
    <% if(!noSerial) { %>
    "SerialInterfaces" : {
        "@odata.id": "<%= url %>/SerialInterfaces"
    },
    <% } %>
    "EthernetInterfaces" : {
        "@odata.id": "<%= url %>/EthernetInterfaces"
    }
    <% if( typeof networkProtocol !== 'undefined') { %>
    , "NetworkProtocol" : {
        "@odata.id": "<%= url %>/NetworkProtocol"
    }
    <% } %>
}