Inventory Device Operation
Endpoints Summary
PUT
/inventory_device_operation/{id}/
Swagger ↗
The Inventory Device Operation API enables you to perform remote
managementoperationsand control ofon devices in yourinventoryinventory,throughsuchstandardizedasoperations.rebooting, factory resetting, or syncing device configurations. This endpointallows you to trigger critical device operations like reboots, factory resets, configuration synchronization, and device reconfiguration remotely. It'sis essential formaintainingdevice lifecycle management and troubleshooting network devicesat scale across your infrastructure.remotely.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Inventory Device Operation API provides a unifiedcentralized interfaceway forto performingexecute remoteadministrative operations on network devices within your inventory management system.inventory. This API is designedparticularly valuable for systemnetwork administrators and DevOpsIT teams who need to manageperform devicesremote remotelydevice management tasks without physical access.access to the hardware.
Key Capabilities:capabilities include:
-
Remote
DeviceRebooting:Control:Restart devices to resolve connectivity issues or apply configuration changes
Common Scenarios:
This API integratesfollows seamlesslyan withupdate-based inventorypattern managementwhere workflows,you specify the operation to perform on a specific device by its ID. Operations are executed asynchronously, allowing you to performtrigger multiple device operations directlywithout onblocking devicesyour identifiedapplication byworkflow.
Common inventoryscenarios IDs.include Allbulk operationsdevice aremanagement asynchronousduring network maintenance windows, automated remediation of device issues, and providestreamlined statusdevice trackingprovisioning for monitoring completion.workflows.
Endpoints
PUT /inventory_device_operation/{id}/
Description: Executes a specifiedspecific operation on aan inventory device inidentified yourby inventory.its ID. This endpoint allows you to triggerperform various remoteadministrative operationstasks remotely, including reboots,rebooting, factory resets,resetting, configurationsyncing synchronization,configurations, andor devicereconfiguring reconfiguration.devices. The operation is performedtypically executed asynchronously, andmaking theit device'ssuitable operationalfor statusautomation will be updated accordingly.workflows.
Use Cases:
Remotely reboot anReboot unresponsivedevicedevices during maintenance windows
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_operation/12345/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| id | integer | path | Yes | The unique identifier of the device in |
| data | string | body | Yes | JSON payload containing the operation to perform |
Request Body Schema:
| Field | Type | Required | Description |
|---|
reboot, factory, device_factory, sync, reconf
Operation Types:
rebootfactorydevice_factorysyncreconfcURL Example:
curl -X PUT "https://control.zequenze.com/api/v1/inventory_device_operation/12345/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operation": "reboot"
}'
Example Request Body:Examples:
Reboot Device:
{
"operation": "reboot"
}
Factory Reset:
{
"operation": "factory"
}
Sync Configuration:
{
"operation": "sync"
}
Example Response:
{
"id": 12345,
"operation": "sync",
"status": "initiated",
"device_id": 12345,
"device_name": "Network Switch - Floor 3",
"device_serial": "NS-2024-001-F3",
"operation_timestamp": "2024-01-15T14:30:22Z",
"estimated_completion": "2024-01-15T14:35:22Z",
"initiated_by": "admin@company.com"reboot"
}
Operation Types:
reboot
Restarts the device, useful for applying configuration changes or resolving connectivity issues
Factory Reset
factory
Resets device to factory defaults, removing all custom configurations
Device Factory Reset
device_factory
Performs a device-specific factory reset operation
Device Config Sync
sync
Synchronizes the device configuration with the central management system
Device Reconfigure
reconf
Applies new configuration settings to the device
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Operation has been initiated successfully |
| 400 | Bad Request - Invalid operation type or malformed request body |
| 401 | Unauthorized - Invalid or missing |
| 404 | Not Found - Device with specified ID does not exist |
Common Use Cases
Use Case 1: EmergencyScheduled DeviceMaintenance RebootWindow
WhenDuring aplanned networkmaintenance, deviceyou becomesmight unresponsiveneed butto isreboot stillmultiple reachabledevices viaafter applying configuration updates. Use the management interface, use the reboot operation to restorerestart normaldevices functionalityin withoutsequence, requiringensuring physicaleach access.
Endpoint:properly new PUTapplies /inventory_device_operation/{id}/withsettings operationand reconnects to the network.reboot
Use Case 2: Device Preparation for Redeployment
BeforeWhen moving adevices devicebetween to a new locationlocations or reassigning itthem to a different purpose,network performsegments, ause factory reset to ensure clean deployment and remove any previous configuration data.
Endpoint: PUT /inventory_device_operation/{id}/ with operationthe factory operation to completely reset devices to their original state, then reconf to apply location-specific configurations.
Use Case 3: Configuration SynchronizationDrift After Policy UpdatesRemediation
AfterIf updatingmonitoring securitysystems policiesdetect orconfiguration networkdrift, configurationsuse centrally,the trigger a sync operation across affected devices to ensure all devices reflectmatch thetheir latestintended configuration state.
Endpoint:as in PUTdefined /inventory_device_operation/{id}/withyour operationmanagement system.sync
Use Case 4: NetworkAutomated Infrastructure MaintenanceTroubleshooting
DuringIntegrate scheduledwith maintenancemonitoring windows,tools performto bulkautomatically reconfigurationtrigger reboot operations when devices become unresponsive, providing a first-level automated remediation before escalating to updatemanual device settings, apply firmware updates, or modify network parameters across multiple devices.
Endpoint: PUT /inventory_device_operation/{id}/ with operation intervention.reconf
Use Case 5: TroubleshootingBulk ConfigurationDevice IssuesProvisioning
WhenFor alarge device is experiencing configuration-related problems,deployments, use device-specific factory resetdevice_factory followed by reconfigurationreconf operations to restoreprepare propermultiple operation while maintaining device-specific settings.
Endpoint: devices with PUT /inventory_device_operation/{id}/operationstandardized configurations efficiently.device_factory
Best Practices
-
Operation
Timing:Timing:ScheduleAllowoperationssufficientduringtimemaintenance windows to minimize service disruption, especially for factory resets and reconfiguration operations
reconf, maintain backup configurations and have rollback procedures in place