start-ping
Added in V2.5
Start a ping test. The test runs asynchronously in the background. Use get-ping-result to retrieve its status and results.
HTTP Request
GET http://ip/usapi?method=start-ping&destination=8.8.8.8&iface=eth0
| Parameter | Description |
|---|---|
| method | Method name: start-ping |
| destination | Ping destination: an IP address or hostname. |
| iface | Egress interface. Optional; defaults to default.default: System default route eth0: Ethernet interface wlan0: Wi-Fi interface |
Response Body
{
"result": 0,
"destination": "8.8.8.8"
}
| Item | Description |
|---|---|
| result | Returned status. 0: Test started successfully -9: System busy (another ping test is in progress) For descriptions of other values, refer to API Status Codes. |
| destination | Ping destination. |