diff options
Diffstat (limited to 'hdv/redfish/test/mock_server.json')
-rw-r--r-- | hdv/redfish/test/mock_server.json | 732 |
1 files changed, 731 insertions, 1 deletions
diff --git a/hdv/redfish/test/mock_server.json b/hdv/redfish/test/mock_server.json index acf7e9a..f36633a 100644 --- a/hdv/redfish/test/mock_server.json +++ b/hdv/redfish/test/mock_server.json @@ -46,5 +46,735 @@ "Members@odata.count": 3, "Name": "Processors Collection" } - } + }, + "/redfish/v1/Chassis/{chassis_id}": [ + { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Chassis/1U", + "@odata.type": "#Chassis.v1_11_0.Chassis", + "AssetTag": "Chicago-45Z-2381", + "ChassisType": "RackMount", + "DepthMm": 711, + "HeightMm": 44.45, + "Id": "1U", + "IndicatorLED": "Lit", + "Links": { + "ComputerSystems": [ + { + "@odata.id": "/redfish/v1/Systems/437XR1138R2" + } + ], + "ManagedBy": [ + { + "@odata.id": "/redfish/v1/Managers/BMC" + } + ], + "ManagersInChassis": [ + { + "@odata.id": "/redfish/v1/Managers/BMC" + } + ] + }, + "Location": { + "Placement": { + "Rack": "WEB43", + "RackOffset": 12, + "RackOffsetUnits": "EIA_310", + "Row": "North" + }, + "PostalAddress": { + "City": "Portland", + "Country": "US", + "HouseNumber": 1100, + "Name": "DMTF", + "PostalCode": "97204", + "Street": "1001 SW 5th Avenue", + "Territory": "OR" + } + }, + "Manufacturer": "Contoso", + "Oem": { + "Mainboard":{ + "BoardName": "RS33M2C9S" + } + }, + "Model": "3500RX", + "Name": "Computer System Chassis", + "PartNumber": "224071-J23", + "Power": { + "@odata.id": "/redfish/v1/Chassis/1U/Power" + }, + "PowerState": "On", + "SKU": "8675309", + "SerialNumber": "437XR1138R2", + "Status": { + "Health": "OK", + "State": "Enabled" + }, + "Thermal": { + "@odata.id": "/redfish/v1/Chassis/1U/Thermal" + }, + "WeightKg": 15.31, + "WidthMm": 431.8 + } + } + ], + "/redfish/v1/Chassis/1U": { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Chassis/1U", + "@odata.type": "#Chassis.v1_11_0.Chassis", + "AssetTag": "Chicago-45Z-2381", + "ChassisType": "RackMount", + "DepthMm": 711, + "HeightMm": 44.45, + "Id": "1U", + "IndicatorLED": "Lit", + "Links": { + "ComputerSystems": [ + { + "@odata.id": "/redfish/v1/Systems/437XR1138R2" + } + ], + "ManagedBy": [ + { + "@odata.id": "/redfish/v1/Managers/BMC" + } + ], + "ManagersInChassis": [ + { + "@odata.id": "/redfish/v1/Managers/BMC" + } + ] + }, + "Location": { + "Placement": { + "Rack": "WEB43", + "RackOffset": 12, + "RackOffsetUnits": "EIA_310", + "Row": "North" + }, + "PostalAddress": { + "City": "Portland", + "Country": "US", + "HouseNumber": 1100, + "Name": "DMTF", + "PostalCode": "97204", + "Street": "1001 SW 5th Avenue", + "Territory": "OR" + } + }, + "Manufacturer": "Contoso", + "Oem": { + "Mainboard":{ + "BoardName": "RS33M2C9S" + } + }, + "Model": "3500RX", + "Name": "Computer System Chassis", + "PartNumber": "224071-J23", + "Power": { + "@odata.id": "/redfish/v1/Chassis/1U/Power" + }, + "PowerState": "On", + "SKU": "8675309", + "SerialNumber": "437XR1138R2", + "Status": { + "Health": "OK", + "State": "Enabled" + }, + "Thermal": { + "@odata.id": "/redfish/v1/Chassis/1U/Thermal" + }, + "WeightKg": 15.31, + "WidthMm": 431.8 + } + }, + "/redfish/v1/Systems/437XR1138R2": { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2", + "@odata.type": "#ComputerSystem.v1_10_0.ComputerSystem", + "Actions": { + "#ComputerSystem.Reset": { + "ResetType@Redfish.AllowableValues": [ + "On", + "ForceOff", + "GracefulShutdown", + "GracefulRestart", + "ForceRestart", + "Nmi", + "ForceOn", + "PushPowerButton" + ], + "target": "/redfish/v1/Systems/437XR1138R2/Actions/ComputerSystem.Reset" + }, + "Oem": { + "#Contoso.Reset": { + "target": "/redfish/v1/Systems/437XR1138R2/Oem/Contoso/Actions/Contoso.Reset" + } + } + }, + "AssetTag": "CM_cc@1234", + "Bios": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Bios" + }, + "BiosVersion": "P79 v1.45 (12/06/2017)", + "Boot": { + "BootSourceOverrideEnabled": "Once", + "BootSourceOverrideMode": "UEFI", + "BootSourceOverrideTarget": "Pxe", + "BootSourceOverrideTarget@Redfish.AllowableValues": [ + "None", + "Pxe", + "Cd", + "Usb", + "Hdd", + "BiosSetup", + "Utilities", + "Diags", + "SDCard", + "UefiTarget" + ], + "UefiTargetBootSourceOverride": "/0x31/0x33/0x01/0x01" + }, + "Description": "Web Front End node", + "EthernetInterfaces": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/EthernetInterfaces" + }, + "HostName": "web483", + "HostingRoles": [ + "ApplicationServer" + ], + "Id": "437XR1138R2", + "IndicatorLED": "Off", + "Links": { + "Chassis": [ + { + "@odata.id": "/redfish/v1/Chassis/1U" + } + ], + "ManagedBy": [ + { + "@odata.id": "/redfish/v1/Managers/BMC" + } + ] + }, + "LogServices": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/LogServices" + }, + "Manufacturer": "Contoso", + "Memory": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory" + }, + "MemorySummary": { + "MemoryMirroring": "None", + "Status": { + "Health": "OK", + "HealthRollup": "OK", + "State": "Enabled" + }, + "TotalSystemMemoryGiB": 96, + "TotalSystemPersistentMemoryGiB": 0 + }, + "Model": "3500", + "Name": "WebFrontEnd483", + "Oem": { + "Chipwise": { + "@odata.type": "#Chipwise.ComputerSystem", + "Style": "Executive" + }, + "Contoso": { + "@odata.type": "#Contoso.ComputerSystem", + "ProductionLocation": { + "Country": "USA", + "FacilityName": "PacWest Production Facility" + } + } + }, + "PartNumber": "224071-J23", + "PowerState": "On", + "ProcessorSummary": { + "Count": 2, + "Model": "Multi-Core Intel(R) Xeon(R) processor 7xxx Series", + "Status": { + "Health": "OK", + "HealthRollup": "OK", + "State": "Enabled" + } + }, + "Processors": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors" + }, + "SKU": "8675309", + "SerialNumber": "437XR1138R2", + "SimpleStorage": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/SimpleStorage" + }, + "Status": { + "Health": "OK", + "HealthRollup": "OK", + "State": "Enabled" + }, + "SubModel": "RX", + "SystemType": "Physical", + "TrustedModules": [ + { + "FirmwareVersion": "1.13b", + "InterfaceType": "TPM1_2", + "Status": { + "Health": "OK", + "State": "Enabled" + } + } + ], + "UUID": "38947555-7742-3448-3784-823347823834" + } + }, + "/redfish/v1/Systems/{system_id}": [ + { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2", + "@odata.type": "#ComputerSystem.v1_10_0.ComputerSystem", + "Actions": { + "#ComputerSystem.Reset": { + "ResetType@Redfish.AllowableValues": [ + "On", + "ForceOff", + "GracefulShutdown", + "GracefulRestart", + "ForceRestart", + "Nmi", + "ForceOn", + "PushPowerButton" + ], + "target": "/redfish/v1/Systems/437XR1138R2/Actions/ComputerSystem.Reset" + }, + "Oem": { + "#Contoso.Reset": { + "target": "/redfish/v1/Systems/437XR1138R2/Oem/Contoso/Actions/Contoso.Reset" + } + } + }, + "AssetTag": "CM_cc@1234", + "Bios": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Bios" + }, + "BiosVersion": "P79 v1.45 (12/06/2017)", + "Boot": { + "BootSourceOverrideEnabled": "Once", + "BootSourceOverrideMode": "UEFI", + "BootSourceOverrideTarget": "Pxe", + "BootSourceOverrideTarget@Redfish.AllowableValues": [ + "None", + "Pxe", + "Cd", + "Usb", + "Hdd", + "BiosSetup", + "Utilities", + "Diags", + "SDCard", + "UefiTarget" + ], + "UefiTargetBootSourceOverride": "/0x31/0x33/0x01/0x01" + }, + "Description": "Web Front End node", + "EthernetInterfaces": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/EthernetInterfaces" + }, + "HostName": "web483", + "HostingRoles": [ + "ApplicationServer" + ], + "Id": "437XR1138R2", + "IndicatorLED": "Off", + "Links": { + "Chassis": [ + { + "@odata.id": "/redfish/v1/Chassis/1U" + } + ], + "ManagedBy": [ + { + "@odata.id": "/redfish/v1/Managers/BMC" + } + ] + }, + "LogServices": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/LogServices" + }, + "Manufacturer": "Contoso", + "Memory": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Memory" + }, + "MemorySummary": { + "MemoryMirroring": "None", + "Status": { + "Health": "OK", + "HealthRollup": "OK", + "State": "Enabled" + }, + "TotalSystemMemoryGiB": 96, + "TotalSystemPersistentMemoryGiB": 0 + }, + "Model": "3500", + "Name": "WebFrontEnd483", + "Oem": { + "Chipwise": { + "@odata.type": "#Chipwise.ComputerSystem", + "Style": "Executive" + }, + "Contoso": { + "@odata.type": "#Contoso.ComputerSystem", + "ProductionLocation": { + "Country": "USA", + "FacilityName": "PacWest Production Facility" + } + } + }, + "PartNumber": "224071-J23", + "PowerState": "On", + "ProcessorSummary": { + "Count": 2, + "Model": "Multi-Core Intel(R) Xeon(R) processor 7xxx Series", + "Status": { + "Health": "OK", + "HealthRollup": "OK", + "State": "Enabled" + } + }, + "Processors": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors" + }, + "SKU": "8675309", + "SerialNumber": "437XR1138R2", + "SimpleStorage": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/SimpleStorage" + }, + "Status": { + "Health": "OK", + "HealthRollup": "OK", + "State": "Enabled" + }, + "SubModel": "RX", + "SystemType": "Physical", + "TrustedModules": [ + { + "FirmwareVersion": "1.13b", + "InterfaceType": "TPM1_2", + "Status": { + "Health": "OK", + "State": "Enabled" + } + } + ], + "UUID": "38947555-7742-3448-3784-823347823834" + } + } + ], + "/redfish/v1/Systems/437XR1138R2/Processors": { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors", + "@odata.type": "#ProcessorCollection.ProcessorCollection", + "Members": [ + { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU1" + }, + { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU2" + }, + { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1" + } + ], + "Members@odata.count": 3, + "Name": "Processors Collection" + } + }, + "/redfish/v1/Systems/{system_id}/Processors": [ + { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors", + "@odata.type": "#ProcessorCollection.ProcessorCollection", + "Members": [ + { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU1" + }, + { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU2" + }, + { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1" + } + ], + "Members@odata.count": 3, + "Name": "Processors Collection" + } + } + ], + "/redfish/v1/Systems/437XR1138R2/Processors/CPU1": { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU1", + "@odata.type": "#Processor.v1_7_0.Processor", + "Id": "CPU1", + "InstructionSet": "x86-64", + "Manufacturer": "Intel(R) Corporation", + "MaxSpeedMHz": 3700, + "Model": "Multi-Core Intel(R) Xeon(R) processor 7xxx Series", + "Name": "Processor", + "ProcessorArchitecture": "x86", + "ProcessorId": { + "EffectiveFamily": "0x42", + "EffectiveModel": "0x61", + "IdentificationRegisters": "0x34AC34DC8901274A", + "MicrocodeInfo": "0x429943", + "Step": "0x1", + "VendorId": "GenuineIntel" + }, + "ProcessorType": "CPU", + "Socket": "CPU 1", + "Status": { + "Health": "OK", + "State": "Enabled" + }, + "TotalCores": 8, + "TotalThreads": 16 + } + }, + "/redfish/v1/Systems/437XR1138R2/Processors/CPU2": { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU2", + "@odata.type": "#Processor.v1_7_0.Processor", + "Id": "CPU2", + "Name": "Processor", + "ProcessorType": "CPU", + "Socket": "CPU 2", + "Status": { + "State": "Absent" + } + } + }, + "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1": { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1", + "@odata.type": "#Processor.v1_7_0.Processor", + "AccelerationFunctions": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1/AccelerationFunctions" + }, + "Actions": { + "#Processor.Reset": { + "target": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1/Actions/Processor.Reset" + } + }, + "FPGA": { + "ExternalInterfaces": [ + { + "Ethernet": { + "MaxLanes": 4, + "MaxSpeedMbps": 10240 + }, + "InterfaceType": "Ethernet" + } + ], + "FirmwareId": "0x6400002fc614bb9", + "FirmwareManufacturer": "Intel(R) Corporation", + "FirmwareVersion": "Blue v.1.00.86", + "FpgaType": "Discrete", + "HostInterface": { + "InterfaceType": "PCIe", + "PCIe": { + "MaxLanes": 8, + "MaxPCIeType": "Gen4" + } + }, + "Model": "Stratix10", + "Oem": {}, + "PCIeVirtualFunctions": 1, + "ProgrammableFromHost": true, + "ReconfigurationSlots": [ + { + "AccelerationFunction": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1/AccelerationFunctions/Compression" + }, + "ProgrammableFromHost": true, + "SlotId": "AFU0", + "UUID": "00000000-0000-0000-0000-000000000000" + } + ] + }, + "Id": "FPGA1", + "InstructionSet": "OEM", + "Links": { + "ConnectedProcessors": [ + { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU1" + } + ], + "Endpoints": [] + }, + "Manufacturer": "Intel(R) Corporation", + "MaxTDPWatts": 150, + "Metrics": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1/ProcessorMetrics" + }, + "Model": "Stratix 10", + "Name": "FPGA", + "Oem": {}, + "ProcessorArchitecture": "OEM", + "ProcessorMemory": [ + { + "CapacityMiB": 512, + "IntegratedMemory": true, + "MemoryType": "HBM2", + "SpeedMHz": 1066 + } + ], + "ProcessorType": "FPGA", + "Status": { + "Health": "OK", + "State": "Enabled" + }, + "TDPWatts": 120, + "UUID": "00000000-0000-0000-0000-000000000000" + } + }, + "/redfish/v1/Systems/{system_id}/Processors/{cpu_id}": [ + { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU1", + "@odata.type": "#Processor.v1_7_0.Processor", + "Id": "CPU1", + "InstructionSet": "x86-64", + "Manufacturer": "Intel(R) Corporation", + "MaxSpeedMHz": 3700, + "Model": "Multi-Core Intel(R) Xeon(R) processor 7xxx Series", + "Name": "Processor", + "ProcessorArchitecture": "x86", + "ProcessorId": { + "EffectiveFamily": "0x42", + "EffectiveModel": "0x61", + "IdentificationRegisters": "0x34AC34DC8901274A", + "MicrocodeInfo": "0x429943", + "Step": "0x1", + "VendorId": "GenuineIntel" + }, + "ProcessorType": "CPU", + "Socket": "CPU 1", + "Status": { + "Health": "OK", + "State": "Enabled" + }, + "TotalCores": 8, + "TotalThreads": 16 + } + }, + { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU2", + "@odata.type": "#Processor.v1_7_0.Processor", + "Id": "CPU2", + "Name": "Processor", + "ProcessorType": "CPU", + "Socket": "CPU 2", + "Status": { + "State": "Absent" + } + } + }, + { + "return_code": 200, + "return_value": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1", + "@odata.type": "#Processor.v1_7_0.Processor", + "AccelerationFunctions": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1/AccelerationFunctions" + }, + "Actions": { + "#Processor.Reset": { + "target": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1/Actions/Processor.Reset" + } + }, + "FPGA": { + "ExternalInterfaces": [ + { + "Ethernet": { + "MaxLanes": 4, + "MaxSpeedMbps": 10240 + }, + "InterfaceType": "Ethernet" + } + ], + "FirmwareId": "0x6400002fc614bb9", + "FirmwareManufacturer": "Intel(R) Corporation", + "FirmwareVersion": "Blue v.1.00.86", + "FpgaType": "Discrete", + "HostInterface": { + "InterfaceType": "PCIe", + "PCIe": { + "MaxLanes": 8, + "MaxPCIeType": "Gen4" + } + }, + "Model": "Stratix10", + "Oem": {}, + "PCIeVirtualFunctions": 1, + "ProgrammableFromHost": true, + "ReconfigurationSlots": [ + { + "AccelerationFunction": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1/AccelerationFunctions/Compression" + }, + "ProgrammableFromHost": true, + "SlotId": "AFU0", + "UUID": "00000000-0000-0000-0000-000000000000" + } + ] + }, + "Id": "FPGA1", + "InstructionSet": "OEM", + "Links": { + "ConnectedProcessors": [ + { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU1" + } + ], + "Endpoints": [] + }, + "Manufacturer": "Intel(R) Corporation", + "MaxTDPWatts": 150, + "Metrics": { + "@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/FPGA1/ProcessorMetrics" + }, + "Model": "Stratix 10", + "Name": "FPGA", + "Oem": {}, + "ProcessorArchitecture": "OEM", + "ProcessorMemory": [ + { + "CapacityMiB": 512, + "IntegratedMemory": true, + "MemoryType": "HBM2", + "SpeedMHz": 1066 + } + ], + "ProcessorType": "FPGA", + "Status": { + "Health": "OK", + "State": "Enabled" + }, + "TDPWatts": 120, + "UUID": "00000000-0000-0000-0000-000000000000" + } + } + ] }
\ No newline at end of file |