Inventory Device Name Operation
TheThis API category enables remote device management operations for inventorydevicedevicesnamewithinoperationtheendpointZequenzeallowsplatform.youIt provides endpoints toupdateperform critical deviceinformationoperationsbylikereferencingreboots,thefactorydevice'sresets,name.configuration synchronization, and reconfiguration tasks programmatically. This isparticularly usefulessential forbatchIToperationsadministratorsormanagingwhenlargeyoufleets of devices who need tomodifyexecutedevicemaintenancedataoperations remotely withoutknowingphysicalthe specific device ID.access.
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 Operation API provides functionality to update device records in your inventory management system using the device name asoperation theAPI identifier.allows administrators to remotely execute critical maintenance and configuration operations on managed devices. This approachAPI is especiallyparticularly valuable in scenarios where device names are unique and well-known identifiers within your organization, eliminating the need to first retrieve device IDs.
This endpoint is commonly used for:
- Remote Device Management: Execute operations on devices across multiple locations without physical access
The API followssupports RESTfulfive principlescore operations: reboot, factory reset, device-specific factory reset, configuration synchronization, and acceptsdevice JSON-formattedreconfiguration. dataEach operation is executed asynchronously, allowing for safe management of devices that may temporarily lose connectivity during the operation.
Important Concepts:
Endpoints
PUT /inventory_device_name_operation/{name}/
Description: UpdatesExecutes ana existingspecified operation on a device recordidentified inby theits inventory system using the device name as the identifier.name. This endpoint allowsis youthe toprimary modifymechanism for remotely managing device attributesstates, suchperforming asmaintenance status,tasks, location,and configuration,updating orconfigurations. metadataThe withoutoperation needingis toqueued knowand executed asynchronously on the device'starget internal ID.device.
Use Cases:
UpdateRemotelydevicerebootstatusunresponsiveafterdevicesmaintenancetooperationsrestore functionalityModifyPerformdevicefactorylocation when equipment is moved
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name_operation/server-web-office-printer-01/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| name | string | path | Yes | The unique name identifier of the |
| data | string | body | Yes | JSON |
Request Body Schema:
reboot, factory, device_factory, sync, reconf
Operation Types:
reboot: Performs a standard device restart
factory: Executes a complete factory reset, removing all configurations and data
device_factory: Performs a device-specific factory reset (preserves certain device-level settings)
sync: Synchronizes device configuration with the management server
reconf: Reconfigures device with updated settings and policies
cURL Example:
curl -X PUT "https://control.zequenze.com/api/v1/inventory_device_name_operation/server-web-office-printer-01/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status"operation": "maintenance",reboot"
}'
Example Request Bodies:
Reboot Operation:
{
"location"operation": "Datareboot"
Center}
B
Factory RackReset 15",Operation:
{
"last_maintenance"operation": "2024-01-15T14:30:00Z",factory"
}
Configuration Sync Operation:
{
"notes"operation": "Scheduled maintenance completed",
"configuration": {
"cpu_cores": 16,
"memory_gb": 64,
"storage_type": "SSD"sync"
}
}'
Example Response:
{
"id": 1247,
"name"operation": "server-web-01",
"status": "maintenance",
"device_type": "server",
"serial_number": "SRV2024-001247",
"location": "Data Center B - Rack 15",
"organization": "IT Department",
"last_maintenance": "2024-01-15T14:30:00Z",
"notes": "Scheduled maintenance completed",
"configuration": {
"cpu_cores": 16,
"memory_gb": 64,
"storage_type": "SSD",
"network_ports": 4
},
"created_at": "2023-08-10T09:15:00Z",
"updated_at": "2024-01-15T14:35:22Z",
"is_active": truereboot"
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - |
| 400 | Bad Request - Invalid |
| 401 | Unauthorized - Invalid or missing API token |
| 404 | Not Found - Device with |
| 422 | Unprocessable Entity - |
Common Use Cases
Use Case 1: ScheduledAutomated MaintenanceDevice UpdatesRecovery
When performingmonitoring routinesystems maintenancedetect onunresponsive devices, useautomatically thistrigger a reboot operation to restore functionality without manual intervention.
Example Workflow:
"operation": the"reboot"
Monitor device status Use Case 2: LocationBulk TrackingDevice Maintenance
AsSchedule maintenance operations across multiple devices areduring movedoff-hours betweenby locationsiterating (datathrough centers,device offices,names storageand facilities),executing updateoperations.
Example locationWorkflow:
Use Case 3: ConfigurationDevice Lifecycle Management
AfterWhen hardwaredevices upgradesare being reassigned or configurationdecommissioned, changes,perform updatefactory theresets to ensure data security and prepare devices for new deployment.
Example Workflow:
factory operation to completely reset devices
Verify reset completion before physical device Use Case 4: ExternalConfiguration System IntegrationDeployment
SynchronizeAfter updating device informationpolicies betweenor yourconfigurations inventoryin the management system, synchronize all affected devices to apply the changes.
Example Workflow:
sync Usestatus Caseto 5:ensure Batchsuccessful Processing
deployment
Process multiple device updates in automated workflows where device names follow predictable patterns, enabling efficient bulk operations for large-scale infrastructure management.
Best Practices
-
UniqueOperationDevice NamesTiming:EnsureScheduledeviceintensivenamesoperationsarelikeuniquefactoryacrossresetsyourduringinventorymaintenance windows topreventminimizeaccidentalbusinessupdates to wrong devices
Error Handling and Troubleshooting
Common Issues:
Device Not Found (404)
Operation Failed (422)
Authentication Issues (401)