/network/if-route
Use the interface to obtain the default route.
Request Mode
POST /api/network/if-route
Response Body
{
"iface": "",
"status": 0
}
Name | Description |
---|---|
status | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |
ifname | The network card that the default route goes through If iface is null, it indicates that there is no route. |