Add DMTF mockup fixtures and test helpers
Unmodified files from DMTF Redfish-Publications (public-rackmount1, public-localstorage, public-telemetry), only those the tests use, each set with DMTF's BSD-3-Clause license and a COMMANDS.txt naming the source commit and request paths. conftest.py loads them by request path and serves a mockup over mocked HTTP, with a SessionService that hands out a token, for the transport tests.
This commit is contained in:
77 files changed
+4051
No files matched your search
@@ -0,0 +1,17 @@
|
||||
Source: https://github.com/DMTF/Redfish-Publications
|
||||
Commit: 4f81814e399213c9055863ddaff42791c6b3706a
|
||||
Mockup: mockups/public-localstorage
|
||||
|
||||
Files are unmodified copies. Each request path maps to <path below /redfish/v1>/index.json
|
||||
(the service root is ./index.json), as in the mockup and as served by Redfish-Mockup-Server.
|
||||
|
||||
Request paths:
|
||||
GET /redfish/v1/Chassis/1U
|
||||
GET /redfish/v1/Chassis/1U/Thermal
|
||||
GET /redfish/v1/Chassis/1U/Power
|
||||
GET /redfish/v1/Systems/437XR1138R2/Storage
|
||||
GET /redfish/v1/Systems/437XR1138R2/Storage/1
|
||||
GET /redfish/v1/Chassis/1U/Drives/35D38F11ACEF7BD3
|
||||
GET /redfish/v1/Chassis/1U/Drives/3F5A8C54207B7233
|
||||
GET /redfish/v1/Chassis/1U/Drives/32ADF365C6C1B7BD
|
||||
GET /redfish/v1/Chassis/1U/Drives/3D58ECBC375FD9F2
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"@odata.type": "#Drive.v1_22_0.Drive",
|
||||
"Id": "32ADF365C6C1B7BD",
|
||||
"Name": "Drive Sample",
|
||||
"IndicatorLED": "Lit",
|
||||
"Model": "C123",
|
||||
"Revision": "100A",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"CapacityBytes": 899527000064,
|
||||
"FailurePredicted": false,
|
||||
"Protocol": "SAS",
|
||||
"MediaType": "HDD",
|
||||
"Manufacturer": "Contoso",
|
||||
"SerialNumber": "1234570",
|
||||
"PartNumber": "C123-1111",
|
||||
"Identifiers": [
|
||||
{
|
||||
"DurableNameFormat": "NAA",
|
||||
"DurableName": "32ADF365C6C1B7BD"
|
||||
}
|
||||
],
|
||||
"HotspareType": "Global",
|
||||
"HotspareReplacementMode": "Revertible",
|
||||
"EncryptionAbility": "SelfEncryptingDrive",
|
||||
"EncryptionStatus": "Unlocked",
|
||||
"RotationSpeedRPM": 15000,
|
||||
"BlockSizeBytes": 512,
|
||||
"CapableSpeedGbs": 12,
|
||||
"NegotiatedSpeedGbs": 12,
|
||||
"Actions": {
|
||||
"#Drive.SecureErase": {
|
||||
"target": "/redfish/v1/Chassis/1U/Drives/32ADF365C6C1B7BD/Actions/Drive.SecureErase"
|
||||
}
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Drives/32ADF365C6C1B7BD",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"@odata.type": "#Drive.v1_22_0.Drive",
|
||||
"Id": "35D38F11ACEF7BD3",
|
||||
"Name": "Drive Sample",
|
||||
"IndicatorLED": "Lit",
|
||||
"Model": "C123",
|
||||
"Revision": "100A",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"CapacityBytes": 899527000064,
|
||||
"FailurePredicted": false,
|
||||
"Protocol": "SAS",
|
||||
"MediaType": "HDD",
|
||||
"Manufacturer": "Contoso",
|
||||
"SerialNumber": "1234567",
|
||||
"PartNumber": "C123-1111",
|
||||
"Identifiers": [
|
||||
{
|
||||
"DurableNameFormat": "NAA",
|
||||
"DurableName": "35D38F11ACEF7BD3"
|
||||
}
|
||||
],
|
||||
"HotspareType": "None",
|
||||
"EncryptionAbility": "SelfEncryptingDrive",
|
||||
"EncryptionStatus": "Unlocked",
|
||||
"RotationSpeedRPM": 15000,
|
||||
"BlockSizeBytes": 512,
|
||||
"CapableSpeedGbs": 12,
|
||||
"NegotiatedSpeedGbs": 12,
|
||||
"Links": {
|
||||
"Volumes": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Storage/1/Volumes/1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Actions": {
|
||||
"#Drive.SecureErase": {
|
||||
"target": "/redfish/v1/Chassis/1U/Drives/35D38F11ACEF7BD3/Actions/Drive.SecureErase"
|
||||
}
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Drives/35D38F11ACEF7BD3",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"@odata.type": "#Drive.v1_22_0.Drive",
|
||||
"Id": "3D58ECBC375FD9F2",
|
||||
"Name": "Drive Sample",
|
||||
"IndicatorLED": "Lit",
|
||||
"Model": "C123",
|
||||
"Revision": "100A",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"CapacityBytes": 899527000064,
|
||||
"FailurePredicted": false,
|
||||
"Protocol": "SAS",
|
||||
"MediaType": "HDD",
|
||||
"Manufacturer": "Contoso",
|
||||
"SerialNumber": "1234568",
|
||||
"PartNumber": "C123-1111",
|
||||
"Identifiers": [
|
||||
{
|
||||
"DurableNameFormat": "NAA",
|
||||
"DurableName": "32ADF365C6C1B7BD"
|
||||
}
|
||||
],
|
||||
"HotspareType": "None",
|
||||
"EncryptionAbility": "SelfEncryptingDrive",
|
||||
"EncryptionStatus": "Unlocked",
|
||||
"RotationSpeedRPM": 15000,
|
||||
"BlockSizeBytes": 512,
|
||||
"CapableSpeedGbs": 12,
|
||||
"NegotiatedSpeedGbs": 12,
|
||||
"Links": {
|
||||
"Volumes": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Storage/1/Volumes/2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Storage/1/Volumes/3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Actions": {
|
||||
"#Drive.SecureErase": {
|
||||
"target": "/redfish/v1/Chassis/1U/Drives/3D58ECBC375FD9F2/Actions/Drive.SecureErase"
|
||||
}
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Drives/3D58ECBC375FD9F2",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"@odata.type": "#Drive.v1_22_0.Drive",
|
||||
"Id": "3F5A8C54207B7233",
|
||||
"Name": "Drive Sample",
|
||||
"IndicatorLED": "Lit",
|
||||
"Model": "C123",
|
||||
"Revision": "100A",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"CapacityBytes": 899527000064,
|
||||
"FailurePredicted": false,
|
||||
"Protocol": "SAS",
|
||||
"MediaType": "HDD",
|
||||
"Manufacturer": "Contoso",
|
||||
"SerialNumber": "1234569",
|
||||
"PartNumber": "C123-1111",
|
||||
"Identifiers": [
|
||||
{
|
||||
"DurableNameFormat": "NAA",
|
||||
"DurableName": "3F5A8C54207B7233"
|
||||
}
|
||||
],
|
||||
"HotspareType": "None",
|
||||
"EncryptionAbility": "SelfEncryptingDrive",
|
||||
"EncryptionStatus": "Unlocked",
|
||||
"RotationSpeedRPM": 15000,
|
||||
"BlockSizeBytes": 512,
|
||||
"CapableSpeedGbs": 12,
|
||||
"NegotiatedSpeedGbs": 12,
|
||||
"Links": {
|
||||
"Volumes": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Storage/1/Volumes/1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Actions": {
|
||||
"#Drive.SecureErase": {
|
||||
"target": "/redfish/v1/Chassis/1U/Drives/3F5A8C54207B7233/Actions/Drive.SecureErase"
|
||||
}
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Drives/3F5A8C54207B7233",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"@odata.type": "#Power.v1_7_3.Power",
|
||||
"Id": "Power",
|
||||
"Name": "Power",
|
||||
"PowerControl": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power#/PowerControl/0",
|
||||
"MemberId": "0",
|
||||
"Name": "Server Power Control",
|
||||
"PowerConsumedWatts": 344,
|
||||
"PowerRequestedWatts": 800,
|
||||
"PowerAvailableWatts": 0,
|
||||
"PowerCapacityWatts": 800,
|
||||
"PowerAllocatedWatts": 800,
|
||||
"PowerMetrics": {
|
||||
"IntervalInMin": 30,
|
||||
"MinConsumedWatts": 271,
|
||||
"MaxConsumedWatts": 489,
|
||||
"AverageConsumedWatts": 319
|
||||
},
|
||||
"PowerLimit": {
|
||||
"LimitInWatts": 500,
|
||||
"LimitException": "LogEventOnly",
|
||||
"CorrectionInMs": 50
|
||||
},
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
],
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Voltages": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power#/Voltages/0",
|
||||
"MemberId": "0",
|
||||
"Name": "VRM1 Voltage",
|
||||
"SensorNumber": 11,
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"ReadingVolts": 12,
|
||||
"UpperThresholdNonCritical": 12.5,
|
||||
"UpperThresholdCritical": 13,
|
||||
"UpperThresholdFatal": 15,
|
||||
"LowerThresholdNonCritical": 11.5,
|
||||
"LowerThresholdCritical": 11,
|
||||
"LowerThresholdFatal": 10,
|
||||
"MinReadingRange": 0,
|
||||
"MaxReadingRange": 20,
|
||||
"PhysicalContext": "VoltageRegulator",
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power#/Voltages/1",
|
||||
"MemberId": "1",
|
||||
"Name": "VRM2 Voltage",
|
||||
"SensorNumber": 12,
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"ReadingVolts": 5,
|
||||
"UpperThresholdNonCritical": 5.5,
|
||||
"UpperThresholdCritical": 7,
|
||||
"LowerThresholdNonCritical": 4.75,
|
||||
"LowerThresholdCritical": 4.5,
|
||||
"MinReadingRange": 0,
|
||||
"MaxReadingRange": 20,
|
||||
"PhysicalContext": "VoltageRegulator",
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"PowerSupplies": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power#/PowerSupplies/0",
|
||||
"MemberId": "0",
|
||||
"Name": "Power Supply Bay",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "Warning"
|
||||
},
|
||||
"PowerSupplyType": "AC",
|
||||
"LineInputVoltageType": "ACWideRange",
|
||||
"LineInputVoltage": 120,
|
||||
"PowerCapacityWatts": 800,
|
||||
"LastPowerOutputWatts": 325,
|
||||
"Model": "499253-B21",
|
||||
"Manufacturer": "ManufacturerName",
|
||||
"FirmwareVersion": "1.00",
|
||||
"SerialNumber": "1Z0000001",
|
||||
"PartNumber": "0000001A3A",
|
||||
"SparePartNumber": "0000001A3A",
|
||||
"InputRanges": [
|
||||
{
|
||||
"InputType": "AC",
|
||||
"MinimumVoltage": 100,
|
||||
"MaximumVoltage": 120,
|
||||
"OutputWattage": 800
|
||||
},
|
||||
{
|
||||
"InputType": "AC",
|
||||
"MinimumVoltage": 200,
|
||||
"MaximumVoltage": 240,
|
||||
"OutputWattage": 1300
|
||||
}
|
||||
],
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
{
|
||||
"@odata.type": "#Thermal.v1_7_3.Thermal",
|
||||
"Id": "Thermal",
|
||||
"Name": "Thermal",
|
||||
"Temperatures": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal#/Temperatures/0",
|
||||
"MemberId": "0",
|
||||
"Name": "CPU1 Temp",
|
||||
"SensorNumber": 5,
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"ReadingCelsius": 41,
|
||||
"UpperThresholdNonCritical": 42,
|
||||
"UpperThresholdCritical": 45,
|
||||
"UpperThresholdFatal": 48,
|
||||
"MinReadingRangeTemp": 0,
|
||||
"MaxReadingRangeTemp": 60,
|
||||
"PhysicalContext": "CPU",
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal#/Temperatures/1",
|
||||
"MemberId": "1",
|
||||
"Name": "CPU2 Temp",
|
||||
"SensorNumber": 6,
|
||||
"Status": {
|
||||
"State": "Disabled"
|
||||
},
|
||||
"UpperThresholdNonCritical": 42,
|
||||
"UpperThresholdCritical": 45,
|
||||
"UpperThresholdFatal": 48,
|
||||
"MinReadingRangeTemp": 0,
|
||||
"MaxReadingRangeTemp": 60,
|
||||
"PhysicalContext": "CPU",
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Processors/CPU2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal#/Temperatures/2",
|
||||
"MemberId": "2",
|
||||
"Name": "Chassis Intake Temp",
|
||||
"SensorNumber": 9,
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"ReadingCelsius": 25,
|
||||
"UpperThresholdNonCritical": 30,
|
||||
"UpperThresholdCritical": 40,
|
||||
"UpperThresholdFatal": 50,
|
||||
"LowerThresholdNonCritical": 10,
|
||||
"LowerThresholdCritical": 5,
|
||||
"LowerThresholdFatal": 0,
|
||||
"MinReadingRangeTemp": 0,
|
||||
"MaxReadingRangeTemp": 60,
|
||||
"PhysicalContext": "Intake",
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Fans": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal#/Fans/0",
|
||||
"MemberId": "0",
|
||||
"Name": "BaseBoard System Fan",
|
||||
"PhysicalContext": "Backplane",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"Reading": 2100,
|
||||
"ReadingUnits": "RPM",
|
||||
"LowerThresholdFatal": 0,
|
||||
"MinReadingRange": 0,
|
||||
"MaxReadingRange": 5000,
|
||||
"Redundancy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal#/Redundancy/0"
|
||||
}
|
||||
],
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal#/Fans/1",
|
||||
"MemberId": "1",
|
||||
"Name": "BaseBoard System Fan Backup",
|
||||
"PhysicalContext": "Backplane",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"Reading": 2050,
|
||||
"ReadingUnits": "RPM",
|
||||
"LowerThresholdFatal": 0,
|
||||
"MinReadingRange": 0,
|
||||
"MaxReadingRange": 5000,
|
||||
"Redundancy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal#/Redundancy/0"
|
||||
}
|
||||
],
|
||||
"RelatedItem": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Redundancy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal#/Redundancy/0",
|
||||
"MemberId": "0",
|
||||
"Name": "BaseBoard System Fans",
|
||||
"RedundancySet": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal#/Fans/0"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal#/Fans/1"
|
||||
}
|
||||
],
|
||||
"Mode": "N+m",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"MinNumNeeded": 1,
|
||||
"MaxNumSupported": 2
|
||||
}
|
||||
],
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"@odata.type": "#Chassis.v1_29_0.Chassis",
|
||||
"Id": "1U",
|
||||
"Name": "Computer System Chassis",
|
||||
"ChassisType": "RackMount",
|
||||
"AssetTag": "Chicago-45Z-2381",
|
||||
"Manufacturer": "Contoso",
|
||||
"Model": "3500RX",
|
||||
"SKU": "8675309",
|
||||
"SerialNumber": "437XR1138R2",
|
||||
"PartNumber": "224071-J23",
|
||||
"PowerState": "On",
|
||||
"IndicatorLED": "Lit",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"Thermal": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Thermal"
|
||||
},
|
||||
"Power": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Power"
|
||||
},
|
||||
"Drives": {
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Drives"
|
||||
},
|
||||
"Links": {
|
||||
"ComputerSystems": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2"
|
||||
}
|
||||
],
|
||||
"ManagedBy": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/BMC"
|
||||
}
|
||||
],
|
||||
"ManagersInChassis": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Managers/BMC"
|
||||
}
|
||||
]
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Chassis/1U",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2014-2025, Contributing Member(s) of Distributed Management Task
|
||||
Force, Inc.. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation and/or
|
||||
other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this software without
|
||||
specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"@odata.type": "#Storage.v1_23_0.Storage",
|
||||
"Id": "1",
|
||||
"Name": "Local Storage Controller",
|
||||
"Description": "Integrated RAID Controller",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK",
|
||||
"HealthRollup": "OK"
|
||||
},
|
||||
"StorageControllers": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Storage/1#/StorageControllers/0",
|
||||
"MemberId": "0",
|
||||
"Name": "Contoso Integrated RAID",
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
},
|
||||
"Identifiers": [
|
||||
{
|
||||
"DurableNameFormat": "NAA",
|
||||
"DurableName": "345C59DBD970859C"
|
||||
}
|
||||
],
|
||||
"Manufacturer": "Contoso",
|
||||
"Model": "12Gbs Integrated RAID",
|
||||
"SerialNumber": "2M220100SL",
|
||||
"PartNumber": "CT18754",
|
||||
"SpeedGbps": 12,
|
||||
"FirmwareVersion": "1.0.0.7",
|
||||
"SupportedControllerProtocols": [
|
||||
"PCIe"
|
||||
],
|
||||
"SupportedDeviceProtocols": [
|
||||
"SAS",
|
||||
"SATA"
|
||||
],
|
||||
"CacheSummary": {
|
||||
"TotalCacheSizeMiB": 1024,
|
||||
"PersistentCacheSizeMiB": 1024,
|
||||
"Status": {
|
||||
"State": "Enabled",
|
||||
"Health": "OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"Drives": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Drives/35D38F11ACEF7BD3"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Drives/3F5A8C54207B7233"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Drives/32ADF365C6C1B7BD"
|
||||
},
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Chassis/1U/Drives/3D58ECBC375FD9F2"
|
||||
}
|
||||
],
|
||||
"Volumes": {
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Storage/1/Volumes"
|
||||
},
|
||||
"Actions": {
|
||||
"#Storage.SetEncryptionKey": {
|
||||
"target": "/redfish/v1/Systems/437XR1138R2/Storage/1/Actions/Storage.SetEncryptionKey"
|
||||
}
|
||||
},
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Storage/1",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"@odata.type": "#StorageCollection.StorageCollection",
|
||||
"Name": "Storage Collection",
|
||||
"Members@odata.count": 1,
|
||||
"Members": [
|
||||
{
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Storage/1"
|
||||
}
|
||||
],
|
||||
"@odata.id": "/redfish/v1/Systems/437XR1138R2/Storage",
|
||||
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
||||
}
|
||||
Reference in new issue
Block a user