get-public-ip
Added in V2.5
Initiate a public IP address check for the specified network. The result is cached on the device and can be retrieved using get-status.
HTTP Request
GET http://ip/usapi?method=get-public-ip&net=eth
| Parameter | Description |
|---|---|
| method | Method name: get-public-ip |
| net | Network type. eth: Ethernet wifi: Wi-Fi |
Response Body
{
"result": 0,
"net": "eth",
"iface": "eth0"
}
| Item | Description |
|---|---|
| result | Returned status. A value of 0 indicates success. Refer to API Status Codes for descriptions of other values. |
| net | Network type. |
| iface | Name of the egress network interface. |