summaryrefslogtreecommitdiff
path: root/Redfish.md
diff options
context:
space:
mode:
authorGeorge Liu <liuxiwei@inspur.com>2022-10-05 10:44:11 +0300
committerGeorge Liu <liuxiwei@inspur.com>2023-04-11 03:35:01 +0300
commita72100201c2ebf3e8da33e9f325ae871bc4598bf (patch)
tree8d811519885944c31a0323e4d6dcb9a7aa326946 /Redfish.md
parent8fd333d664f87c73757e0c5e58c611dc0c3e76d7 (diff)
downloadbmcweb-a72100201c2ebf3e8da33e9f325ae871bc4598bf.tar.xz
Implements PowerSupplies schema
This commit implements the Redfish PowerSupplyCollection at /redfish/v1/Chassis/<chassis Id>/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 <liuxiwei@inspur.com> Change-Id: I48e087d6fb52013e3a96b44391cc4d86049ac176
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 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