API reference
Pingboxes
The vantage points inside your network that ping your devices and run live tests
- List pingboxes
GET /v1/pingboxes
List pingboxes
Your pingboxes: the vantage points inside your network that ping your devices and run live tests. Each device is pinged from one pingbox (get_device shows which, and list_devices can filter by it), and the network default covers devices with no other assignment. A pingbox's hardware is the box it runs on. status is online, offline, or no_hardware (nothing is running it, so its devices aren't being pinged); more states may be added.
Parameters
-
ispstring queryISP code from GET /isps. Optional when the key reaches exactly one ISP.
-
limitinteger queryMax rows (default 200, max 500)
-
cursorstring querynext_cursor from the previous page
Response
Also available as CSV: add format=csv. Columns follow the field order below, with nested fields as dotted columns
(ap.name).
Paged: pass next_cursor back as cursor for the next page.
-
countinteger -
next_cursorstring nullablePass as cursor to get the next page; null on the last page
-
pingboxesarray of objectsEach item: 6 fields
-
pingboxidintegerPass as pingboxid to ping and traceroute, or as pingbox to
list_devices -
namestring -
is_defaultbooleanThe network default: devices with no other assignment are pinged from it
-
statusstringonline, offline or no_hardware; more states may be added
-
hardwareobject nullableThe box this pingbox runs on; null when it has none
1 fields
-
kindstringcloud, vm, on_prem, pathbox, container or unknown; more kinds may be added
-
-
device_countintegerInfrastructure devices pinged from it. CPEs are pinged from their AP's pingbox
-
Example
curl -H "Authorization: Bearer $SWIFTFOX_KEY" \
"https://api.swiftfox.net/v1/pingboxes?isp=yourisp" Response (example data):
{
"count": 3,
"next_cursor": null,
"pingboxes": [
{
"pingboxid": 0,
"name": "Riverbend Cloud",
"is_default": true,
"status": "online",
"hardware": {
"kind": "cloud"
},
"device_count": 41
},
{
"pingboxid": 1,
"name": "Hilltop",
"is_default": false,
"status": "online",
"hardware": {
"kind": "on_prem"
},
"device_count": 18
},
{
"pingboxid": 2,
"name": "Mill Valley",
"is_default": false,
"status": "no_hardware",
"hardware": null,
"device_count": 0
}
]
}