跳到主要内容

POST – 连接 BMC WIFI

使用 POST 方法连接 BMC WiFi。

请求 URL

POST https://<BMC_IPADDR>/redfish/v1/Managers/1/EthernetInterfaces/WLAN/Actions/Oem/LenovoEthernetInterface.ConnectWifi

请求正文

字段

类型

描述

SSID

字符串WIFI 名称。

Mode

字符串WIFI 模式。

SecurityType

字符串WIFI 的安全类型。

UserName

字符串WIFI 的用户名。

Password

字符串WIFI 的密码。

AutoConnect

字符串WIFI 自动连接。

响应

无。

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

以下示例是 POST 正文:

{
"SSID": "XCC_APTEST2",
"Mode": "WPA2-Enterprise",
"SecurityType": "EAP-TTLS/MSCHAPv2",
"UserName": "testing",
"Password": "Passw0rd123456",
"AutoConnect": true
}

The following example JSON response is returned:
{
"ConnectStatus": "disconnected”
}