Inventory Device Diags
Endpoints Summary
POST
/inventory_device_diags/
Swagger ↗
GET
/inventory_device_diags/
Swagger ↗
The Inventory Device Diagnostics API enables you to
configurecreate andmanagemonitor network diagnostictestsoperationsonformanageddevicesdevices.in your inventory. These endpoints allow you to schedulediagnosticvariousoperationsnetwork tests likebandwidthping, traceroute, speed tests,connectivityandchecks,WiFi diagnostics, then retrieve results and status information for troubleshooting and networktroubleshootingperformancedirectly on customer premises equipment (CPE) from your control platform.analysis.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Inventory Device Diagnostics API provides comprehensive network diagnostic capabilities for managed devices in your inventory.devices. This API category allows younetwork administrators and developers to remotelyprogrammatically execute various diagnostic testsoperations on customer premises equipment (CPE) to troubleshootincluding connectivity issues,tests, measureperformance measurements, and network performance,discovery and gather detailed network information.tools.
Key Features:
ExecutemultipleMultiplediagnosticDiagnosticoperations:Types: Support for HTTP download/upload tests, ICMP ping, UDPecho tests,echo, traceroute, DNS lookups, and WiFi neighborscansdiscoveryConfiguretestFlexible Configuration: Customizable parameterslikefor packetcount,size, timeout values, connection counts, andconnection settingsmore- Real-time Monitoring: Track diagnostic operation status and retrieve results as they become available
Common Use Cases:
- Automated
NetworknetworkTroubleshooting:healthWhenmonitoringcustomersandreportalerting
The diagnostic operations are executed directlyasynchronously on the target devices, providingallowing real-timeyou networkto insightsschedule frommultiple tests and check their progress using the customer'slist actual network environment.endpoint.
Endpoints
GET /inventory_device_diags/
Description: Retrieves a list of configured diagnostic operations for devices in your inventory. This endpoint allows you to view existing diagnostic configurations and optionally update device status information before returning results. Use this to monitor scheduled diagnostics or review diagnostic configurations across your managed devices.
Use Cases:
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_diags/?id=12345&update_status=true
Parameters:
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_diags/?update_status=true" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
[
{
"id": 12345,
"operation": "download",
"target": "http://speedtest.example.com/download/test.bin",
"upload_size": null,
"count": null,
"size": null,
"timeout": null,
"dns_server": null,
"max_hops": null,
"interface": "eth0",
"number_of_connections": 4
},
{
"id": 12346,
"operation": "ipping",
"target": "8.8.8.8",
"upload_size": null,
"count": 10,
"size": 64,
"timeout": 3,
"dns_server": null,
"max_hops": null,
"interface": "wan0",
"number_of_connections": null
},
{
"id": 12347,
"operation": "wifi.neighbor",
"target": "channel_scan",
"upload_size": null,
"count": null,
"size": null,
"timeout": null,
"dns_server": null,
"max_hops": null,
"interface": "wlan0",
"number_of_connections": null
}
]
Response Codes:
POST /inventory_device_diags/
Description: Creates a new diagnostic operation configuration for a specific device. This endpoint allows you to scheduleschedules various networktypes diagnostic tests including bandwidth measurements, connectivity tests, andof network analysisdiagnostics operations. The diagnosticthat will be queued for executionexecuted on the target devicedevice, accordingincluding toconnectivity thetests, specifiedperformance parameters.measurements, and network discovery operations.
Use Cases:
- Schedule
bandwidthautomatedtestsnetworktohealthmeasurechecks
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_diags/
Request Body Parameters:
The request body should contain a JSON object with the diagnostic configuration:
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | integer | Yes | ID of the target device |
| operation | string | Yes | Type of diagnostic operation. download, upload, ipping, udpecho, traceroute, dnslookup, wifi.neighbor |
| target | string | Yes | Target |
| upload_size | string | No | |
| count | integer | No | Number of packets for ping (default: 5) or DNS lookup repetitions (default: 1) |
| size | integer | No | Packet size in bytes for ping operations (default: 64) |
| timeout | integer | No | Response timeout in seconds for |
| dns_server | string | No | Specific DNS server IP for DNS lookup operations |
| max_hops | integer | No | Maximum hops for traceroute operations (default: 30) |
| interface | string | No | Network interface name to use for the operation |
| number_of_connections | integer | No |
cURL Examples:Example - Ping Test:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_diags/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": 12345,
"operation": "ipping",
"target": "8.8.8.8",
"count": 10,
"size": 64,
"timeout": 2
}'
BandwidthcURL DownloadExample - Speed Test:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_diags/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": 12345,
"operation": "download",
"target": "http://speedtest.example.com/download/100MB.bin",
"number_of_connections": 4,
"interface": "eth0",
"number_of_connections": 4
}'
PingExample Connectivity Test:Response:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_diags/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": 12346,12345,
"operation": "ipping",
"target": "8.8.8.8",
"count": 20,10,
"size": 1024,64,
"timeout": 3,2,
"interface": "wan0"
}'
DNS Lookup Test:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_diags/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": 12347,
"operation": "dnslookup",
"target": "www.example.com",
"count": 3,
"timeout": 5,
"dns_server": "1.1.1.1"
}'
Example Response:
{
"id": 12348,
"operation": "download",
"target": "http://speedtest.example.com/download/100MB.bin"eth0",
"upload_size": null,
"count": null,
"size": null,
"timeout": null,
"dns_server": null,
"max_hops": null,
"interface": "eth0",
"number_of_connections": 4null
}
Response Codes:
| Status | Description |
|---|---|
| 201 | Created - Diagnostic operation scheduled successfully |
| 400 | Bad Request - Invalid parameters or missing required fields |
| 401 | Unauthorized - Invalid or missing API token |
| 404 | Not Found - |
GET /inventory_device_diags/
Description: Retrieves a list of diagnostic operations, either all operations or filtered by specific criteria. This endpoint allows you to monitor the status of scheduled diagnostics and retrieve results from completed operations.
Use Cases:
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_diags/?id=67890&update_status=true
Parameters:
cURL Example - ProblemList creatingAll Diagnostics:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_diags/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
cURL Example - Get Specific Diagnostic:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_diags/?id=67890&update_status=true" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
[
{
"id": 12345,
"operation": "ipping",
"target": "8.8.8.8",
"count": 10,
"size": 64,
"timeout": 2,
"interface": "eth0",
"upload_size": null,
"dns_server": null,
"max_hops": null,
"number_of_connections": null
},
{
"id": 12346,
"operation": "download",
"target": "http://speedtest.example.com/100MB.bin",
"count": null,
"size": null,
"timeout": null,
"interface": "wlan0",
"upload_size": null,
"dns_server": null,
"max_hops": null,
"number_of_connections": 4
},
{
"id": 12347,
"operation": "traceroute",
"target": "google.com",
"count": null,
"size": null,
"timeout": null,
"interface": null,
"upload_size": null,
"dns_server": null,
"max_hops": 20,
"number_of_connections": null
}
]
Response Codes:
Common Use Cases
Use Case 1: CustomerAutomated SpeedNetwork ComplaintHealth InvestigationMonitoring
WhenSchedule aregular customerping reportsand slowconnectivity internettests speeds,for critical devices to monitor network health. Use the POST endpoint to create downloadrecurring diagnostic jobs and uploadthe diagnosticGET testsendpoint to measureretrieve actualresults throughputfor fromdashboard their device to your test servers and identify if the issue is with download, upload,displays or bothalerting directions.systems.
Use Case 2: ConnectivityBandwidth TroubleshootingPerformance Testing
IfConduct aperiodic customer experiences intermittent connectivity issues, schedule pingspeed tests tousing critical infrastructure (DNS servers, gateways, service endpoints) with increased packet countsdownload and varyingupload sizesoperations to ensure devices meet SLA requirements. Configure multiple connections to test maximum throughput capabilities and identify packetperformance loss or latency patterns.degradation.
Use Case 3: Troubleshooting Connectivity Issues
When users report network problems, use traceroute and DNS lookup diagnostics to identify routing issues or DNS resolution problems. The interface parameter allows testing specific network paths.
Use Case 4: WiFi PerformanceSite Survey and Optimization
Before and after WiFi configuration changes, useExecute WiFi neighbor diagnostics to scananalyze wireless environments, identify interference sources, and optimize channel assignments for interference sources and optimal channel selection, helping to optimize wirelessbetter performance in crowdeddense RFdeployment environments.
Use Case 4: Service Installation Validation
After installing new equipment or services, run a comprehensive diagnostic suite including ping tests to verify gateway connectivity, DNS lookups to confirm name resolution, and bandwidth tests to validate service delivery speeds.scenarios.
Use Case 5: ProactiveCompliance Networkand MonitoringSLA Reporting
ScheduleRegularly regularschedule comprehensive diagnostic operationssuites acrossand youruse devicethe inventoryresults tofor proactivelycompliance identifyreporting, SLA verification, and network degradation,performance plandocumentation capacityrequired upgrades,by andregulatory maintainor servicecontractual quality before customers experience issues.obligations.
Best Practices
Operation Selection:
UseBatchippingforOperations:basicWhenconnectivitytestingverificationmultiple devices, stagger diagnostic operations to avoid network congestion andlatencyensuremeasurementaccurate results-
Parameter Optimization: Use
download/appropriateuploadfortimeoutbandwidth validationvalues andservicepacketspeed verification
traceroutewifi.neighborParameter Configuration:
Error Handling:
Performance Considerations:
update_status parameter judiciously as it