From a72100201c2ebf3e8da33e9f325ae871bc4598bf Mon Sep 17 00:00:00 2001 From: George Liu Date: Wed, 5 Oct 2022 15:44:11 +0800 Subject: Implements PowerSupplies schema This commit implements the Redfish PowerSupplyCollection at /redfish/v1/Chassis//PowerSubsystem/PowerSupplies. It shall contain an array of links to resources of type PowerSupply that represent the power supplies that provide power to this chassis. For the association between power supply and chassis, refer to[1]. Also, the members property is implemented in the next commit with the PowerSupply implementation, this is so the validator will pass. [1] https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/57428 Tested: Validator passes 1. curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassis/PowerSubsystem/ PowerSupplies { "@odata.id": "/redfish/v1/Chassis/chassis/PowerSubsystem/ PowerSupplies" "@odata.type": "#PowerSupplyCollection.PowerSupplyCollection", "Description": "The collection of PowerSupply resource instances chassis", "Members": [ ], "Members@odata.count": 0, "Name": "Power Supply Collection" } 2. Bad chassisId curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassisError/PowerSubsystem/ PowerSupplies { "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type Chassis named 'chassisError' was not found.", "MessageArgs": [ "Chassis", "chassisError" ], "MessageId": "Base.1.13.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.13.0.ResourceNotFound", "message": "The requested resource of type Chassis named 'chassisError' was not found." } } Signed-off-by: George Liu Change-Id: I48e087d6fb52013e3a96b44391cc4d86049ac176 --- Redfish.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Redfish.md') diff --git a/Redfish.md b/Redfish.md index 1714985938..65d405ff74 100644 --- a/Redfish.md +++ b/Redfish.md @@ -366,6 +366,12 @@ Fields common to all schemas - MinNumNeeded - MaxNumSupported +#### /redfish/v1/Chassis/{ChassisId}/PowerSubsystem/PowerSupplies + +##### PowerSupplies + +- Description + ### /redfish/v1/EventService/ #### EventService -- cgit v1.2.3