|
Post by mharishm on Dec 12, 2023 11:24:50 GMT
Hi, Under /redfish/v1/Systems/<<id>> resource, when CPU is "ON" or "OFF", we are updating the "PowerState" property according to the CPU power state. Under the same resource there is "State" property as well under "Status" object. Is it ok to update the "State" value based on the "PowerState". For example, if the power state is OFF, update the State value to "Disabled" and if the power state is ON, update the "State" value as "Enabled". As per the Resource schema redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status, there is no any relation to the state property to the power state value. Hence any help would be greatly appreciated. Thanks, Harish M
|
|
|
Post by jautor on Dec 12, 2023 19:20:31 GMT
There is no requirement to tie the `PowerState` to the `Status/State` property. But depending on your device, it certainly can make sense to change the `State` value to reflect the fact that it's powered off... If you do change the `State` value, I would suggest using the `StandbyOffine` value, assuming that the unit would become fully functional if someone pushes the power button.
Jeff
|
|