summaryrefslogtreecommitdiff
path: root/Redfish.md
diff options
context:
space:
mode:
authorAlbert Zhang <zhanghaodi@inspur.com>2021-06-10 09:41:48 +0300
committerGunnar Mills <gmills@us.ibm.com>2023-07-13 06:01:59 +0300
commit9f1ae5ae73212293cc2fe92dff1fa2449039fa81 (patch)
tree40230a2129b6946d8bdb1ecb4cdeb32a7431c9bd /Redfish.md
parente4e54232c271f3c4b92531b1de78329d08a05fff (diff)
downloadbmcweb-9f1ae5ae73212293cc2fe92dff1fa2449039fa81.tar.xz
Add Status information for Fan
This commit is to add Fan State/Health status according to the Redfish Fan schema. If the `xyz.openbmc_project.Inventory.Item` interface does not exist, the state status property is set to default "Present". If the `xyz.openbmc_project.State.Decorator.OperationalStatus` interface does not exist, the health status property is set to default "OK". ref: https://redfish.dmtf.org/schemas/v1/Fan.v1_3_0.json Code that updates the OperationalStatus for all the inventory https://github.com/openbmc/openpower-vpd-parser/blob/3fb026386546cfd288ab4f86156c9aa0ffa145d6/ibm_vpd_app.cpp#L620 Tested: Validator passes ''' 1.doGet method to get Fan curl -k https://${bmc}/redfish/v1/Chassis/chassis/ThermalSubsystem/Fans/fan0 { "@odata.id": "/redfish/v1/Chassis/chassis/ThermalSubsystem/Fans/fan0", "@odata.type": "#Fan.v1_3_0.Fan", "Id": "fan0", "Name": "Fan", "Status": { "Health": "OK", "State": "Enabled" } } 2.Enter the wrong fanId with the doGet method to get fan { "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type Fan named 'fanx' was not found.", "MessageArgs": [ "Fan", "fanx" ], "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 Fan named 'fanx' was not found." } } ''' Signed-off-by: Albert Zhang <zhanghaodi@inspur.com> Change-Id: I52c465f745587233e43a2947c392d1435b2d980b Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.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 4607589af2..8584673ccc 100644
--- a/Redfish.md
+++ b/Redfish.md
@@ -320,6 +320,12 @@ Fields common to all schemas
- Members
- Members@odata.count
+#### /redfish/v1/Chassis/{ChassisId}/ThermalSubsystem/Fans/{FanName}/
+
+#### Fan
+
+- Status
+
### /redfish/v1/Chassis/{ChassisId}/Power#/PowerControl/{ControlName}/
#### PowerControl