GET – BMC 串口属性
使用 GET 方法检索 Redfish 服务的串口资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Managers/1/SerialInterfaces/1
请求正文
无
响应正文
响应是包含以下参数的 JSON 对象:
| 字段 | 类型 | 描述 | |||
|---|---|---|---|---|---|
id  | 字符串 | “1”  | |||
Name  | 字符串 | “Serial Interface”  | |||
BitRate  | 字符串 | 串口的比特率。有效值包括:9600、19200、38400、57600、115200  | |||
SignalType  | 字符串 | “Rs232”  | |||
Parity  | 字符串 | 串口的奇偶校验信息,有效值包括:None、Odd、Even。  | |||
StopBits  | 字符串 | 串口停止位。  | |||
DataBits  | 字符串 | 8  | |||
Description  | 字符串 | Redfish 串口  | |||
FlowControl  | 字符串 | “None”  | |||
InterfaceEnabled  | 布尔 | 指示是否启用此接口。  | |||
状态代码
| HTTP 状态代码 | 错误消息 ID | 
|---|---|
| 500 | InternalError | 
响应示例
请求成功时,将返回类似于以下内容的消息正文:
{
    "SignalType": "Rs232",
    "BitRate": "115200",
    "@odata.id": "/redfish/v1/Managers/1/SerialInterfaces/1",
    "InterfaceEnabled": true,
    "Description": "Serial port redirection of the host.",
    "Name": "Serial Interface",
    "@odata.context": "/redfish/v1/$metadata#SerialInterface.SerialInterface",
    "StopBits": "1",
    "Oem": {
        "Lenovo": {
            "CLIMode": "UserDefined",
            "@odata.type": "#LenovoSerialInterface.v1_0_0.LenovoSerialInterfaceProperties",
            "EnterCLIKeySequence": "^[(",
            "SerialInterfaceState": "Enabled"
        }
    },
    "@odata.type": "#SerialInterface.v1_1_3.SerialInterface",
    "DataBits": "8",
    "Id": "1",
    "@odata.etag": "\"bc5c2883051b4e001123be789f9c8034\"",
    "Parity": "None",
    "FlowControl": "None"
}
提供反馈