Querying Wi-Fi Switch Status
Function
This interface is used to querying the Wi-Fi switch status.
Syntax
Operation type: GET
URL: https://device_ip/redfish/v1/wifiSwitchInfo
Request header:
X-Auth-Token: auth_value
Request message body: None
Parameters
Parameter |
Description |
Value |
---|---|---|
device_ip |
IP address for logging in to a device. |
An IPv4 or IPv6 address. |
auth_value |
Authentication parameter contained in the request. |
You can obtain the value from the session created by using /redfish/v1/SessionService/Sessions. |
Usage Guidelines
None
Example
Request:
GET https://10.10.10.10/redfish/v1/wifiSwitchInfo
Request header:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1
Request message body: None
Response:
{ "code": 0, "status": 200, "msg": "success", "enable": 0 }
Response code: 200
Output Description
Attribute |
Type |
Description |
---|---|---|
status |
Numeric value |
Response code. |
code |
Numeric value |
Interface return code. The value can be as follows:
|
msg |
Character string |
Return information. |
enable |
Numeric value |
|