Inventory Device Name Operation
Endpoints Summary
PUT
/inventory_device_name_operation/{name}/
Swagger ↗
ThisThe Inventory Device Name Operation APIcategoryenables remote device management operationsforoninventoryspecific deviceswithinintheyourZequenzeinventory.platform.ThisItendpointprovidesallowsendpointsyou toperformexecute critical device operationslikesuchreboots,as rebooting, factory resets, configurationsynchronization,sync, and device reconfigurationtasksbyprogrammatically. This is essential for IT administrators managing large fleets oftargeting deviceswhousingneedtheirtouniqueexecute maintenance operations remotely without physical access.names.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The inventoryInventory deviceDevice nameName operationOperation API allowsprovides administratorsa topowerful remotelyinterface executefor criticalperforming maintenanceremote and configurationmanagement operations on manageddevices devices.within your inventory system. This API is particularlyspecifically valuabledesigned for:for network administrators, IT operations teams, and automated systems that need to execute device management commands remotely.
Key capabilities include:
-
Remote Device
ManagementControl: Execute operations on devicesacross multiple locationswithout physical access -
Bulk Maintenance Operations: Programmatically perform maintenance tasks across device fleets
This endpoint is particularly valuable in scenarios such as troubleshooting network issues, performing scheduled maintenance, deploying configuration changes, or recovering devices that have become unresponsive. The API supports fivevarious coreoperation operations:types reboot,including standard reboots, factory reset, device-specific factory reset,resets, configuration synchronization, and complete device reconfiguration.
The operationoperations isare executed asynchronously, allowing foryour safeapplications managementto ofcontinue devicesprocessing thatwhile maydevice temporarilyoperations losecomplete connectivity duringin the operation.
ImportantThis Concepts:
Endpoints
PUT /inventory_device_name_operation/{name}/
Description: Executes a specified operation on a device identified by its name. This endpoint isallows theyou primaryto mechanismperform for remotely managingcritical device states,management performingtasks maintenanceremotely, tasks,including reboots, factory resets, configuration sync, and updatingreconfiguration configurations.operations. The operation is queued and executed asynchronouslyimmediately onupon thesuccessful targetAPI device.call.
Use Cases:
- Remotely reboot unresponsive network devices
toduringrestore functionalitytroubleshooting - Perform factory resets on devices being reassigned
ortodecommissioneddifferent locations - Synchronize device configurations after policy updates
ReconfigureExecute device reconfiguration as part of automated deployment workflows
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name_operation/office-printer-router-01/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| name | string | path | Yes | The unique |
| data | string | body | Yes | JSON payload containing the operation details and parameters |
Request Body Schema:
| Field | Type | Required | Description | Allowed Values |
|---|---|---|---|---|
| operation | string | Yes | The operation to perform on the device | reboot, factory, device_factory, sync, reconf |
Operation Types:
-
reboot:Performs a standardStandard devicerestartreboot - restarts the device while preserving configuration -
factory:ExecutesFactoryaresetcomplete- returns device to original factoryreset, removing all configurations and datasettings -
device_factory:Performs a device-specificDevice factory reset(preserves-certaincomplete reset including device-levelspecificsettings)settings -
sync:SynchronizesDevicedeviceconfig sync - synchronizes current configuration withthecentral managementserver -
reconf:ReconfiguresDevicedevicereconfigurewith-updatedapplies new configuration settingsandtopoliciesthe device
cURL Example:
curl -X PUT "https://control.zequenze.com/api/v1/inventory_device_name_operation/office-printer-router-01/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operation": "reboot"
}'
Example Request Bodies:
(Reboot Operation:Operation):
{
"operation": "reboot"
}
FactoryExample ResetRequest Operation:
{
"operation": "factory"
}
(Configuration Sync Operation:Sync):
{
"operation": "sync"
}
Example Response:
{
"id": 1247,12345,
"operation": "reboot",
"device_name": "office-router-01",
"status": "initiated",
"timestamp": "2024-01-15T14:30:25Z",
"execution_id": "op_67890abcdef",
"estimated_completion": "2024-01-15T14:32:25Z"
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Operation |
| 400 | Bad Request - Invalid operation type or malformed request |
| 401 | Unauthorized - Invalid or missing |
| 404 | Not Found - Device with specified name does not exist |
| 500 | Internal Server Error - |
Common Use Cases
Use Case 1: Automated DeviceIncident RecoveryResponse
When monitoring systems detect unresponsivedevice devices,connectivity issues, automatically trigger a reboot operation tousing restorethe functionalityreboot operation type. This can resolve many common network issues without manual intervention.
Example Workflow:
"operation": "reboot"Use Case 2: Bulk DeviceScheduled Maintenance Operations
ScheduleIntegrate with scheduling systems to perform configuration sync operations (sync) during maintenance operationswindows, acrossensuring multipleall devices during off-hours by iterating through device names and executing operations.
Example Workflow:
Use Case 3: Device LifecycleDeployment ManagementPipeline
WhenUse the reconf operation as part of automated device deployment workflows when devices are being reassigned or decommissioned, perform factory resetsneed to ensurebe data security and prepare devicesreconfigured for new deployment.roles or locations.
Example Workflow:
factoryUse Case 4: ConfigurationSecurity DeploymentIncident Recovery
AfterExecute updating device policiesfactory or configurationsdevice_factory inoperations theon management system, synchronize all affectedcompromised devices to applyensure complete removal of potentially malicious configurations or software.
Use Case 5: Configuration Drift Remediation
Regularly use the changes.
Example Workflow:
sync operation Best Practices
Operation Planning:
- Always
OperationverifyTiming:deviceScheduleconnectivityintensivebefore initiating operations that may temporarily disconnect the device
sync operations before more disruptive operations like reboot to ensure configurations are current
Schedule factory Error Handling and Troubleshooting
Common Issues:
Device Not Found (404)Handling:
VerifyImplementtheretrydevicelogicnamewithisexponentialcorrectbackoffandformatchestemporarythefailuresinventory(5xxexactlyerrors)CheckMonitorthatoperationthecompletiondevicethroughexistsseparateinstatusyourcheckingorganization's inventorymechanismsEnsureHandleproper409URLconflictsencodingby waiting fordevicecurrentnamesoperationswithtospecialcompletecharactersbefore retrying
OperationSecurity Failed (422)Considerations:
DeviceRestrictmayAPIbeaccessofflinetoorauthorizedunreachablepersonnel and systems onlySomeLog all device operationsmayfornotauditbeandsupportedcomplianceonpurposes
AuthenticationPerformance Issues (401)Optimization:
VerifyBatchAPIsimilartokenoperationsisduringvalidmaintenance windows to reduce overall impact
Monitoring Integration: