Inventory Device Name Ipping
RetrieveThe Inventory Device Name IP Ping endpoint provides functionality to retrieve IP connectivity information for network devices by their name. This endpoint is essential for network monitoring, devicenamingstatus verification, andIPtroubleshootingpingconnectivityconfigurationissuesinformationinfrommanagedtheITinventory system.environments.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Inventory Device Name IP Ping API category enables network administrators and IT teams to retrieve ping-based connectivity data for devices in their inventory using the device name as an identifier. This endpoint is particularly useful for:
This endpoint returns comprehensive ping statistics including response times, packet loss, and reachability status, making it an essential tool for network operations and device management workflows.
Endpoints
GET /inventory_device_name_ipping/{name}/
Description: Retrieves device naming and IP ping configurationconnectivity detailsinformation for a specific device identified by its namename. identifier.This endpoint performs or returns cached ping test results, providing network reachability data including response times, packet loss statistics, and overall connectivity status.
Use Cases:
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name_ipping/server-db-01/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| name | string | path | Yes | The |
ExamplecURL Request:Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_name_ipping/server-001/db-01/" \
-H "Authorization: Bearer your-api-tokenYOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
{
"device": {
"id": 1247,
"name": "server-001",
"display_name": "Production Server 001"db-01",
"ip_address": "192.168.1.100"50",
"ping_enabled": true,
"ping_interval": 30,
"ping_timeout": 5,
"last_ping_status": "success",
"last_ping_time": "2024-01-15T10:30:00Z",
"response_time_ms": 12.5,
"device_type": "server",
"location"organization": "datacenter-a"IT Infrastructure"
},
"created_at"ping_results": {
"2024-01-01T08:00:00Z"is_reachable": true,
"packets_sent": 4,
"packets_received": 4,
"packet_loss_percent": 0,
"response_times_ms": [2.1, 1.8, 2.3, 1.9],
"updated_at"average_response_time_ms": 2.025,
"min_response_time_ms": 1.8,
"max_response_time_ms": 2.3,
"last_tested": "2024-01-15T10:30:00Z"45Z",
"test_duration_ms": 3245
},
"network_info": {
"hostname_resolved": "server-db-01.internal.company.com",
"gateway_ip": "192.168.1.1",
"subnet": "192.168.1.0/24"
},
"status": "online",
"metadata": {
"test_method": "icmp_ping",
"timeout_ms": 5000,
"cache_ttl_seconds": 300
}
}
Response Codes:
| Status | Description |
|---|---|
| 200 | |
| 401 | Unauthorized - Invalid or missing API token |
| 404 | Not Found - Device |
Common Use Cases
Use Case 1: Network Health Dashboard
Integrate this endpoint into monitoring dashboards to display real-time connectivity status for critical infrastructure. Poll the endpoint periodically to update device status indicators and alert on connectivity issues.
Use Case 2: Pre-Deployment Verification
Before deploying updates or performing maintenance on remote devices, use this endpoint to verify the device is network-accessible and determine baseline connectivity performance.
Use Case 3: Automated Incident Response
Incorporate into incident response workflows to automatically verify network connectivity when device alerts are triggered, helping differentiate between network issues and device-specific problems.
Use Case 4: Network Performance Baseline
Collect ping statistics over time to establish performance baselines for devices and identify degradation trends in network connectivity.
Best Practices
UseImplement Caching: Respect theexactcachedeviceTTLnameindicated in the response to avoid unnecessary API calls and reduce load on network infrastructure
last_ping_statusHandling: ping_interval