summaryrefslogtreecommitdiff
path: root/Redfish.md
diff options
context:
space:
mode:
authorJohn Edward Broadbent <jebr@google.com>2022-04-26 23:40:59 +0300
committerEd Tanous <ed@tanous.net>2022-06-06 19:27:11 +0300
commit92903bd47b8d2e2b2e777d1ba61871a3b54fefd4 (patch)
tree8de53570b23ef5060aed8d64b4687d3c2ad49ff7 /Redfish.md
parent0bad320c1f4b9e4f8d58d04dc076e438f3f49e9c (diff)
downloadbmcweb-92903bd47b8d2e2b2e777d1ba61871a3b54fefd4.tar.xz
redfish: Add Chassis listing associated drive
If chassis has drives a drive url is added to the chassis, of the form: redfish/v1/Chassis/<chassis>/Drives When queried, the drive URL will list all drives associated with the chassis. This is in accordance with the redfish schema. Samples for the following URLs are below wget -qO- http://localhost:80/redfish/v1/Chassis/DC_SCM/Drives { "@odata.id": "/redfish/v1/Chassis/DC_SCM/Drives", "@odata.type": "#DriveCollection.DriveCollection", "Members": [ { "@odata.id": "/redfish/v1/Chassis/DC_SCM/Drives/mmcblk0" } ], "Members@odata.count": "1", "Name": "Drive Collection" } Tested: With the redfish validator: No new errors Change-Id: Ibdbe7fee5014d6515a77683c8eaca9ca86b6b148 Signed-off-by: John Edward Broadbent <jebr@google.com>
Diffstat (limited to 'Redfish.md')
-rw-r--r--Redfish.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/Redfish.md b/Redfish.md
index f96cbbf42f..d301f542f8 100644
--- a/Redfish.md
+++ b/Redfish.md
@@ -144,6 +144,12 @@ Fields common to all schemas
- Shall be included if component contains temperature sensors, otherwise
shall be omitted.
+#### /redfish/v1/Chassis/{ChassisId}/Drive/
+#### Drive
+- Members
+(This is dependent on a entity manager association from
+Chassis to Drives, The name of the association is "chassis<->drive")
+
#### /redfish/v1/Chassis/{ChassisId}/Power/
##### Power
- PowerControl