Skip to main content

PATCH – Update BMC WLAN configurations

Use the PATCH method to update properties in Ethernet interface resource for a BMC.

Request URL

PATCH https://<BMC_IPADDR>/redfish/v1/Managers/1/EthernetInterfaces/WLAN

Request body

Properties to be updated are shown below:

FieldTypeDescription

InterfaceEnabled

Boolean

A boolean indicating whether this interface is enabled.

IPv4StaticAddresses

Array

An array of objects used to represent the IPv4 connection characteristics for this XCC2 interface.

Note
Only the static IPv4 address could be updated.

IPv4StaticAddresses

Array

An array of objects used to represent the IPv4 connection characteristics for this XCC2 interface.

DHCPv4

Object

Expanded

 

DHCPEnabled

Boolean

The DHCP is Enabled or not.

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.

{
"InterfaceEnabled" : true,
"IPv4StaticAddresses" : [
{
"Address": "169.254.95.119",
"SubnetMask": "255.255.0.0"
}
]
}

The resource after updated is returned.

{
"Oem": {
"Lenovo": {
"SecurityType": "WPA2-PSK",
"SSID": "",
"AutoConnectLists": [
"XCC_APTEST",
"XCC_TEST"
],
"ConnectStatus": "disconnected"
}
},
"Status": {
"Health": "OK",
"State": "Enabled"
},
"@odata.type": "#EthernetInterface.v1_9_0.EthernetInterface",
"Name": "Manager WLAN Interface",
"@odata.context": "/redfish/v1/$metadata#EthernetInterface.EthernetInterface",
"Id": "WLAN",
"DHCPv4": {
"DHCPEnabled": false
},
"IPv4Addresses": [
{
"Gateway": "0.0.0.0",
"AddressOrigin": "Static",
"SubnetMask": "255.255.255.0",
"Address": "169.254.95.119"
}
],
"@odata.id": "/redfish/v1/Managers/1/EthernetInterfaces/WLAN",
"InterfaceEnabled": true,
"MACAddress": "14:13:33:66:1a:97",
"@odata.etag": "\"c451d5d87e2f32c500ad8\"",
"IPv4StaticAddresses": [
{
"Gateway": "0.0.0.0",
"AddressOrigin": "Static",
"SubnetMask": "255.255.255.0",
"Address": "169.254.95.119"
}
],
"Actions": {
"Oem": {
"#LenovoEthernetInterface.IgnoreWifiAutoList": {
"title": "IgnoreWifiAutoList",
"target": "/redfish/v1/Managers/1/EthernetInterfaces/WLAN/Actions/Oem/LenovoEthernetInterface.IgnoreWifiAutoList"
},
"#LenovoEthernetInterface.DisconnectWifi": {
"title": "DisconnectWifi",
"target": "/redfish/v1/Managers/1/EthernetInterfaces/WLAN/Actions/Oem/LenovoEthernetInterface.DisconnectWifi"
},
"#LenovoEthernetInterface.GetWifiScanResults": {
"title": "GetWifiScanResults",
"target": "/redfish/v1/Managers/1/EthernetInterfaces/WLAN/Actions/Oem/LenovoEthernetInterface.GetWifiScanResults"
},
"#LenovoEthernetInterface.ConnectWifi": {
"Mode@Redfish.AllowableValues": [
"WPA2_PSK",
"WPA2_Enterprise"
],
"title": "ConnectWifi",
"target": "/redfish/v1/Managers/1/EthernetInterfaces/WLAN/Actions/Oem/LenovoEthernetInterface.ConnectWifi"
},
"#LenovoEthernetInterface.DoManualWifiScan": {
"title": "DoManualWifiScan",
"target": "/redfish/v1/Managers/1/EthernetInterfaces/WLAN/Actions/Oem/LenovoEthernetInterface.DoManualWifiScan"
}
}
},
"Description": "Manager WLAN Interface"
}