Skip to main content

PATCH – Update BMC serial interface configurations

Use the PATCH method to update properties in the resource of serial interface for Redfish service.

Request URL

PATCH https://<BMC_IPADDR>/redfish/v1/Managers/1/SerialInterfaces/1

Request body

Properties to be updated are shown as bellow, all of these properties can be changed individually.

FieldTypeError Message ID
BitRateString

Valid values: 9600, 19200, 38400, 57600, 115200

StopBitsString

Serial interface stop bits.

Valid values: 1, 2

ParityString

Valid values: None, Odd, Even.

InterfaceEnabledBoolean

Valid values: True/False

Response body

The response returns same content as GET operation with updated properties.

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following example is PATCH body.

{
"BitRate": "57600",
"Parity": "Even"
}

After the PATCH operation runs successfully, querying the chassis resource returns below example JSON response:

{
"@odata.context" : "/redfish/v1/$metadata#SerialInterface.SerialInterface",
"BitRate" : "57600",
"Parity" : "Even",
"Id" : "1",
"SignalType" : "Rs232",
"Oem" : {
"Lenovo" : {
"EnterCLIKeySequence" : "^[(",
"SerialInterfaceState" : "Enabled",
"CLIMode" : "UserDefined"
}
},
"StopBits" : "1",
"DataBits" : "8",
"@odata.etag" : "\"c27142bd8ebce22599a3beed29808fd3\"",
"@odata.id" : "/redfish/v1/Managers/1/SerialInterfaces/1",
"@odata.type" : "#SerialInterface.v1_1_3.SerialInterface",
"Description" : "Serial port redirection of the host.",
"Name" : "Serial Interface",
"FlowControl" : "None",
"InterfaceEnabled" : true
}