summaryrefslogtreecommitdiff
path: root/Redfish.md
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2024-02-27 06:10:16 +0300
committerEd Tanous <ed@tanous.net>2024-03-04 21:20:07 +0300
commit33e1f122b740c5de679dc0350b5f41e8d975499f (patch)
treea47a7d601147363a0c72b5b70e378df1d49eb873 /Redfish.md
parent12878e7374d1bbe85e14e0cb82b70fcc2c8cf6ff (diff)
downloadbmcweb-33e1f122b740c5de679dc0350b5f41e8d975499f.tar.xz
AllowedHostTransitions: look for on dbus
Commit [1] introduced a new optional dbus property that OpenBMC developers can populate to define which redfish/v1/Systems/system/ResetActionInfo AllowableValues are. Look for that new property on dbus. If not found, hard code the previous values otherwise utilize the property to fill in the return value. Tested: - Put new property on dbus and confirmed Redfish API returned expected values: ``` curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Systems/system/ResetActionInfo { "@odata.id": "/redfish/v1/Systems/system/ResetActionInfo", "@odata.type": "#ActionInfo.v1_1_2.ActionInfo", "Id": "ResetActionInfo", "Name": "Reset Action Info", "Parameters": [ { "AllowableValues": [ "ForceOff", "PowerCycle", "Nmi", "On", "ForceOn", "ForceRestart", "GracefulRestart", "GracefulShutdown" ], "DataType": "String", "Name": "ResetType", "Required": true } ] } ``` - Did not run redfish validator as response was same as previous [1]: https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/68933 Change-Id: Iecece14e7ff55db98d96df71b106ecc9e3f0ac33 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'Redfish.md')
-rw-r--r--Redfish.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/Redfish.md b/Redfish.md
index cdec1f90c0..93105ebfce 100644
--- a/Redfish.md
+++ b/Redfish.md
@@ -936,6 +936,14 @@ other.
- TotalThreads
- Version
+### /redfish/v1/Systems/system/ResetActionInfo/
+
+#### ActionInfo
+
+- Parameters/AllowableValues
+- Parameters/DataType
+- Parameters/Required
+
### /redfish/v1/Systems/system/Storage/
#### StorageCollection