Your Company Name
Model: MX304
Location: DC1 - Primary
JunOS: 23.2R1
Model: MX304
Location: DC2 - Secondary
JunOS: 23.2R1
The NetPulse Looking Glass API provides programmatic access to network diagnostics.
All API requests require authentication via Bearer token:
Authorization: Bearer YOUR_API_KEY
API requests are rate-limited per API key. Check response headers:
X-RateLimit-Limit - Requests allowed per minuteX-RateLimit-Remaining - Requests remaining in windowX-RateLimit-Reset - Seconds until limit resetsList all available routers.
Response:
{
"success": true,
"data": [
{
"slug": "core1",
"name": "Core Router 1",
"location": "DC1 - Primary",
"model": "MX304"
}
]
}
List connections for a router.
Parameters:
router (required) - Router slugExample:
GET /api/v1/connections?router=core1
Execute ICMP ping from a router through a specific upstream.
Parameters:
target (required) - IP address or hostnamerouter (required) - Router slugconnection (required) - Connection IDExample:
GET /api/v1/ping?target=8.8.8.8&router=core1&connection=1
Response:
{
"success": true,
"data": {
"target": "8.8.8.8",
"router": "Core Router 1",
"connection": "Cogent Transit",
"source_ip": "203.0.113.1",
"command": "ping 8.8.8.8 source 203.0.113.1 count 5",
"output": "PING 8.8.8.8: 56 data bytes\n...",
"duration_ms": 1523
}
}
Execute traceroute from a router through a specific upstream.
Parameters:
target (required) - IP address or hostnamerouter (required) - Router slugconnection (required) - Connection IDas_lookup (optional) - Include AS number lookup (true/false)Example:
GET /api/v1/traceroute?target=google.com&router=core1&connection=1&as_lookup=true
Get BGP AS path information from BIRD route-server.
Parameters:
target (required) - IP address or prefixrouter (optional) - Router slug (defaults to first available)Example:
GET /api/v1/aspath?target=8.8.8.0/24
Get BGP AS path from all routers (consolidated view).
Parameters:
target (required) - IP address or prefixExample:
GET /api/v1/aspath/all-routers?target=8.8.8.0/24
All errors return a JSON object with an error field:
{
"error": "Invalid or missing API key"
}
HTTP Status Codes:
200 - Success400 - Bad request (invalid parameters)401 - Unauthorized (invalid API key)429 - Rate limit exceeded500 - Server errorContact noc@example.com to request API access.