data/views/redfish-1.0/ucs.1.0.0.computersystem.1.3.0.json
{
"@odata.context" : "<%= basepath %>/$metadata#ComputerSystem.ComputerSystem",
"@odata.id": "<%= url %>",
"@odata.type": "#ComputerSystem.v1_3_0.ComputerSystem",
"Oem" : {},
"Id": "<%= identifier %>",
"Description": "<%= hardware.data.descr %>",
"Name": "Computer System",
"SystemType": "<%= systemType %>",
"AssetTag": "",
"Manufacturer": "<%= hardware.data.vendor %>",
"Model": "<%= hardware.data.model %>",
"SKU": "<%= skuInfo %>",
"SerialNumber": "<%= hardware.data.serial %>",
"PartNumber": "<%= hardware.data.part_number %>",
"UUID": "<%= hardware.data.uuid %>",
"HostName": "",
"IndicatorLED": "<%= led.data.oper_state === 'on'?'Lit':'Off' %>",
"PowerState": "<%= hardware.data.oper_power.charAt(0).toUpperCase() + hardware.data.oper_power.slice(1) %>",
"Boot": {},
"BiosVersion": "<%= bios.data.revision %>",
"ProcessorSummary": {
"Count": <%= hardware.data.num_of_cpus %>,
"Model": "",
"Status": {}
},
"MemorySummary": {
"TotalSystemMemoryGiB": <%= hardware.data.total_memory>>10 %>,
"Status": {}
},
"Actions": {
"Oem": {
"RackHD": {
"#RackHD.BootImage": {
"target": "<%=basepath%>/Systems/<%=identifier%>/Actions/RackHD.BootImage"
}
}
},
"#ComputerSystem.Reset": {
"target": "<%=basepath%>/Systems/<%=identifier%>/Actions/ComputerSystem.Reset"
}
},
"Status": {},
"Processors": {
"@odata.id": "<%= basepath %>/Systems/<%= identifier %>/Processors"
},
"EthernetInterfaces": {
"@odata.id": "<%= basepath %>/Systems/<%= identifier %>/EthernetInterfaces"
},
"SimpleStorage": {
"@odata.id": "<%= basepath %>/Systems/<%= identifier %>/SimpleStorage"
},
"LogServices": {
"@odata.id": "<%= basepath %>/Systems/<%= identifier %>/LogServices"
},
"Links": {
"Oem": {},
"ManagedBy@odata.count": <%= obm.length %>,
"ManagedBy": [
<% obm.forEach(function(obm, i, arr) { %>
{
"@odata.id": "<%= basepath %>/Managers/<%= obm %>"
}
<%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
<% }); %>
],
"PoweredBy@odata.count": 0,
"PoweredBy": [],
"CooledBy@odata.count": 0,
"CooledBy": [],
"Chassis@odata.count": <%= chassis.length %>,
"Chassis": [
<% chassis.forEach(function(chassis, i, arr) { %>
{
"@odata.id": "<%= basepath %>/Chassis/<%= chassis %>"
}
<%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
<% }); %>
]
},
"Storage":{
"@odata.id": "<%= basepath %>/Systems/<%= identifier %>/Storage"
}
}