PATCH – Update BMC time zone and other oem properties
Use the PATCH method to update properties in Manager resource for Redfish service.
Request URL
PATCH https://<BMC_IPADDR>/redfish/v1/Managers/1
Request parameters
Properties to be updated are shown as below, all of these properties can be changed individually.
Field | Type | Description |
---|---|---|
DateTimeLocalOffset | String | The time offset from UTC that the DateTime property is set to. When AutoDST is Enabled, the allowable values are listed as follows. “+00:00”, “+01:00”, “+03:00”, “+06:00”, “+07:00”, “+09:30”, “+10:00”, “+12:00” “-11:00”, “-09:00”, “-08:00”, “-01:00”. When AutoDST is disabled, the allowable values are listed as follows. “+00:00”, “+01:00”, “+02:00”, “+03:00”, “+03:30”, “+04:00”, “+04:30”, “+05:00”, “+05:30”, “+05:45”, “+06:00”, “+06:30”, “+07:00”, “+08:00”, “+09:00”, “+09:30”, “+10:00”, “+11:00”, “+12:00”, “+13:00”, “-12:00”, “-11:00”, “-10:00”, “-09:00”, “-08:00”, “-07:00”, “-06:00”, “-05:00”, “-04:30”, “-04:00”, “-03:30”, “-03:00”, “-02:00”, “-01:00”. This property can’t be patched when DST is enabled or host time is local time. |
AutoDSTEnabled | Boolean | When this property is true, the AutoDST can be patched. |
Response body
The response returns same content as GET operation with updated properties.
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
Example
The following example is a PATCH body. Since "+8:00" does not support AutoDST, the following PATCH body can be used when "AutoDSTEnabled" is disabled.
{
"DateTimeLocalOffset": "+08:00",
"AutoDSTEnabled": false
}
The resource updated is returned.
{
"DateTimeLocalOffset": "+08:00",
"AutoDSTEnabled": false
"@odata.id": "/redfish/v1/Managers/1",
…
}