Inventory Device Whip
Endpoints Summary
GET
/inventory_device_whip/{id}/
Swagger ↗
The
InventoryinventoryDevicedeviceWHIPwhipendpointsAPIprovideprovides remote device management capabilities, allowingyouadministrators to execute critical operations on network devices throughtheaWHIPcentralized(Web-basedcontrolHardwareinterface.InterfaceThisProtocol).endpointTheseenablesendpointsremoteenable administrators to perform essential maintenance tasks like reboots,rebooting, factory resets, configuration synchronization, andconfigurationdevicesynchronizationreconfigurationremotely.operations for efficient device lifecycle management.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Inventoryinventory Devicedevice WHIPwhip API category is designed for remote device management and control operations within yourin network infrastructure.infrastructure environments. This API allowscategory networkprovides administratorsa andsecure automatedinterface systemsfor toexecuting performadministrative critical maintenance operationscommands on managed devices without requiring physical access.
Theor WHIP (Web-based Hardware Interface Protocol) integration enables you to execute variousdirect device operations remotely, including system reboots, factory resets, configuration synchronization, and device reconfiguration. This is particularly valuable for managing distributed network infrastructure, IoT devices, or equipment in remote locations where physical access is limited or costly.connections.
Key Operations Available:Capabilities:
-
RebootRemote Rebooting::PerformRestartadevicessofttorestartresolveofperformancetheissuesdeviceor apply configuration changes -
Factory Reset Operations:
:ResetRestoredevicedevices to factory defaults(preservesornetworkperformconnectivity)
ThisCommon Use Cases:
The API isfollows commonlya usedcommand-based inapproach networkwhere operations centersare (NOCs),specified automatedusing maintenancepredefined workflows,operation codes, ensuring consistent and reliable device lifecycle management systems.across different hardware types and vendors.
Endpoints
GET /inventory_device_whip/{id}/
Description: Retrieves the current WHIPdevice operation statusconfiguration orand initiatesavailable a device operationcommands for a specific inventorymanaged device. This endpoint servesprovides asinformation bothabout asupported status checkeroperations and operationcurrent trigger,device dependingstate, onallowing howadministrators it'sto called.understand Thewhat operationmanagement parameteractions determines which remote action willcan be performed on the target device.
Use Cases:
RemotelyVerifyrebootavailableunresponsiveoperationsnetworkbeforedevices
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_whip/12345/?operation=reboot
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| id | integer | path | Yes |
Operation Values:
rebootfactorydevice_factorysyncreconfcURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_whip/12345/?operation=reboot"" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
{
"id": 12345,
"operation": "reboot",
"status": "initiated",
"device_info": {
"device_id": 12345,
"device_name": "switch-floor-2-east"Switch-Floor-3-A",
"device_type": "network_switch",
"model": "Cisco Catalyst 2960",
"serial_number": "SW2E-8845-XXYY"FCW2147L0GH",
"ip_address"management_ip": "192.168.2.45"1.100",
"location": "Building A - Floor 2 East"
}3",
"operation_details"available_operations": [
"reboot",
"factory",
"device_factory",
"sync",
"reconf"
],
"last_operation": {
"initiated_at"operation": "sync",
"timestamp": "2024-01-15T14:30:00Z",
"estimated_completion"status": "2024-01-15T14:32:00Z"completed",
"operation_id"initiated_by": "op_67890abcdef"admin@company.com"
},
"device_status": "online",
"firmware_version": "15.2(7)E3",
"uptime": "45 days, 12:34:56"
}
StatusOperation CheckTypes Example (without operation parameter):Reference:
curlreboot
factory
Complete factory reset
Return device to original factory state
device_factory
StatusDevice-specific Responsefactory Example:reset
Vendor-specific factory reset procedure
{sync
reconf
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - |
Common Use Cases
Use Case 1: Automated Network MaintenanceTroubleshooting Workflow
Schedule periodic reboots ofWhen network devices duringexperience maintenanceconnectivity windowsor performance issues, administrators can use this endpoint to preventverify memorydevice leaksaccessibility and ensureexecute optimalremote performance.reboots Useto theresolve common rebootoperationproblems integratedwithout withrequiring youron-site maintenance scheduling system.visits.
Use Case 2: Configuration Drift Remediation
When monitoring systems detectRegular configuration drift,audits usemay reveal devices that have drifted from standard configurations. Use the sync operation to restore devicesproper configurations and the reconf operation to theirapply intendedupdated configurationpolicies stateacross withoutthe manualnetwork intervention.infrastructure.
Use Case 3: Device DeploymentReplacement and Provisioning
During devicehardware replacementrefresh or new deployments,cycles, use factory or device_factory operations to prepare devices for redeployment, followed by operations to reconfsyncensureapply devicesappropriate start with a clean state and receive the correct configurationconfigurations for theirnew locationnetwork and role.locations.
Use Case 4: Scheduled Maintenance Operations
Implement automated maintenance workflows that check device status and execute planned operations during maintenance windows, such as configuration updates followed by controlled reboots.
Use Case 5: Emergency Recovery OperationsProcedures
When devices become unresponsive or misconfigured, use thethis appropriateAPI factoryto resetexecute operationrecovery (operations factoryorremotely, device_factory)potentially basedavoiding oncostly whethersite visits and reducing network connectivity needs to be preserved for remote recovery.
Use Case 5: Bulk Configuration Updates
After updating network policies or security settings, use the reconf operation across multiple devices to ensure consistent policy enforcement throughout your infrastructure.downtime.
Best Practices
-
Operation
SequencingSequencing::WaitAlwaysforretrievecompletiondeviceof one operationinformation beforeinitiatingexecutinganotheroperationsontotheverifysame device. Check operationdevice statususingandtheavailableendpoint without parameters.commands -
Error
HandlingHandling::Implement retry logic with exponential backoff for network-related failures, as device operationsthatmayfailtakeduetime totemporary network issues. Monitor for 409 status codes indicating conflicting operations.complete -
Maintenance Windows: Schedule disruptive operations (factory resets, reboots) during planned maintenance windows to minimize service impact.
Monitoring Integration: Integrate WHIP operations with your network monitoring system to track device recovery after operationsLogging and detectAuditing: anyRecord issues.
Documentation: Always log WHIPdevice operations with timestamps and reasonsuser information for audit trailscompliance and troubleshooting purposes.
Timeout Handling: Set appropriate timeouts for operations. Reboots typically complete in 2-3 minutes, while factory resets may take 5-10 minutes depending on the device type.
Batch OperationsProcessing:: When performing the same operation onmanaging multiple devices, implement parallelappropriate executiondelays withbetween reasonable concurrency limitsoperations to avoid overwhelming thenetwork infrastructure