Inventory Device Serial Headless Operation
The Inventory Device Serial Headless Operation endpoints
manageenableautomated,programmaticscheduledcontrol of device operationsforthroughdeviceserialinventorynumberwithout user interaction.identification. These endpoints allow you tocreateschedule andmonitor background tasks that updateretrieve devicestatusesoperations like getting parameters, setting configurations, andperformmanaginginventoryobjectsoperationswithoutprogrammatically.manual intervention, making them ideal for automated device management workflows.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Inventory Device Serial Headless Operation API enablesprovides automateda managementpowerful ofinterface for managing device inventory operations thatprogrammatically runusing withoutdevice userserial interface interaction.numbers. This systemAPI category is designed for automated device management scenarios where you need to:to perform bulk operations or scheduled maintenance tasks across multiple devices without manual intervention.
Key Capabilities:
ScheduleautomatedDevice Parameter Management: Get and set device configuration parameters using TR-069/CWMP variable paths
Common Integration Scenarios:
TheseThe endpointsAPI workuses togetherTR-069/CWMP data model variable paths (e.g., Device.ManagementServer.PeriodicInformInterval) to provideidentify aspecific completedevice headless operation management system. You can create new scheduled operations using the POST endpointparameters and monitorsupports theirmultiple progressdata usingtypes theincluding GETintegers, endpoint. The operations are designed to handle device serial number tracking, status updates,booleans, and inventory management tasks that may take extended time to complete.
Key concepts include scheduled transactions (operations queuedstrings for execution),set status helpers (automated tools that update device information), and headless processing (operations that run independently of user sessions).operations.
Endpoints
GET /inventory_device_serial_headless_operation/
Description: Retrieves information about scheduled deviceheadless inventoryoperations operations.for Thisdevices, endpoint allowsallowing you to monitor theoperation status and progressresults. ofThis backgroundendpoint tasks,supports filtering by transaction ID and can optionally triggeringupdate device status updates before returning results.information.
Use Cases:
- Monitor the progress and results of
bulkpreviously scheduled deviceinventory updates
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_serial_headless_operation/?id=12345&update_status=true
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| id | string | query | No | ID of the |
| update_status | boolean | query | No |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_serial_headless_operation/?id=12345&update_status=true" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
[
{
"count"serial_number": 1,"SN123456789",
"next"operation": null,"get",
"previous"variables": null,[
{"variable_name": "results"Device.ManagementServer.PeriodicInformInterval"},
{"variable_name": "Device.WiFi.SSID.1.SSID"}
]
},
{
"serial_number": "SN987654321",
"operation": "set",
"variables": [
{
"id"variable_name": "12345"Device.ManagementServer.PeriodicInformInterval",
"operation_type"value": "bulk_serial_sync"300",
"status"value_type": "in_progress",
"progress": 65,
"total_devices": 150,
"processed_devices": 98,
"failed_devices": 2,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:45:30Z",
"estimated_completion": "2024-01-15T12:15:00Z",
"operation_details": {
"device_types": ["router", "switch", "access_point"],
"organization_ids": [101, 102],
"error_summary": {
"connection_timeouts": 1,
"authentication_failures": 1
}
}integer"
}
]
}
]
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Returns array of scheduled |
| 401 | Unauthorized - Invalid or missing API token |
| 404 | Not Found - |
POST /inventory_device_serial_headless_operation/
Description: Creates a new scheduled headless operation for a device inventoryidentified management.by serial number. This endpoint queues background tasks forschedules device serialoperations numberlike synchronization,parameter bulkretrieval, updates,configuration changes, or otherobject inventory operationsmanagement that shouldwill runbe withoutexecuted user interaction.automatically.
Use Cases:
- Schedule
bulkconfigurationdevice serial number synchronizationchanges across multipleorganizationsdevices CreateRetrieveautomatedspecificinventoryparameterauditsvaluesthatforrunmonitoringduringoroff-hoursreportingQueueAdd new configuration objects to devices (e.g., new WiFi SSIDs)
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_serial_headless_operation/
Parameters:Request Body:
cURL Example:Example - Get Operation:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_serial_headless_operation/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operation_type"serial_number": "bulk_serial_sync"SN123456789",
"target_organizations"operation": "get",
"variables": [101,
102, 103],{"variable_name": "device_filters": {
"types": ["router", "switch"],
"status": ["active", "pending"]
Device.ManagementServer.PeriodicInformInterval"},
{"schedule": {
"execute_at"variable_name": "2024-01-16T02:00:00Z",Device.WiFi.SSID.1.SSID"}
"priority": "normal"
},
"options": {
"update_firmware_info": true,
"validate_connectivity": true,
"timeout_minutes": 120
}]
}'
cURL Example - Set Operation:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_serial_headless_operation/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"serial_number": "SN123456789",
"operation": "set",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval",
"value": "300",
"value_type": "integer"
},
{
"variable_name": "Device.ManagementServer.PeriodicInformEnable",
"value": "true",
"value_type": "boolean"
}
]
}'
Request Schema:
get, set, add.obj, or del.obj
variables
array
No
Array of variable objects with operation-specific properties
Variable Object Schema:
For Get/Add Object/Delete Object operations:
For Set operations:
integer, boolean, or string
Example Response:
{
"id"serial_number": "67890"SN123456789",
"operation_type"operation": "bulk_serial_sync"set",
"status"variables": "scheduled",
"created_at": "2024-01-15T14:30:00Z",
"scheduled_for": "2024-01-16T02:00:00Z",
"estimated_duration_minutes": 90,
"target_device_count": 245,
"operation_config":[
{
"organizations"variable_name": [101, 102, 103]"Device.ManagementServer.PeriodicInformInterval",
"device_types"value": ["router"300",
"switch"],value_type": "options": {
"update_firmware_info": true,
"validate_connectivity": true,
"timeout_minutes": 120integer"
}
},
"monitoring_url": "/api/v1/inventory_device_serial_headless_operation/?id=67890"]
}
Response Codes:
| Status | Description |
|---|---|
| 201 | Created - Operation successfully scheduled |
| 400 | Bad Request - Invalid |
| 401 | Unauthorized - Invalid or missing API token |
Common Use Cases
Use Case 1: AutomatedBulk NightlyConfiguration Inventory SyncUpdate
Schedule comprehensiveconfiguration changes across multiple devices by creating separate operations for each device inventory synchronization to run during maintenance windows. Create operations that update serial numbers,number. firmwareMonitor versions,progress andusing connectivitythe statusGET acrossendpoint allwith managedtransaction devices without impacting daytime operations.IDs.
Use Case 2: ComplianceDevice AuditHealth PreparationMonitoring
GenerateRegularly scheduledretrieve key device parameters like uptime, signal strength, and error counters by scheduling get operations thatfor collectspecific variables across your device serial numbers and configuration data needed for compliance reporting. Monitor progress through the GET endpoint and retrieve results when auditors require current inventory information.fleet.
Use Case 3: LargeAutomated Organization Device ManagementProvisioning
ForSet organizationsup managingnew hundredsdevices orby thousandsscheduling a series of devices, create bulkset operations thatto updateconfigure network settings, management parameters, and service configurations based on device informationserial across multiple sites and device types. Use the monitoring capabilities to track progress and handle any devices that fail to update.numbers.
Use Case 4: IntegrationWiFi withNetwork External SystemsManagement
IntegrateAdd devicenew inventoryWiFi updatesSSIDs withto externaldevices assetusing management,add.obj ticketing,operations, or monitoringremove systemsobsolete bynetworks schedulingusing operationsdel.obj throughoperations, thetargeting APIspecific andTR-069 monitoringWiFi theirobject completion status programmatically.paths.
Use Case 5: ProactiveCompliance Device MaintenanceReporting
Schedule regular get operations thatto checkretrieve device connectivitysecurity and updateconfiguration statusparameters information,needed enablingfor proactivecompliance identificationreporting, ofusing devicesthe thatupdate_status mayflag needto attentionensure beforecurrent they impact network operations.data.
Best Practices
-
ScheduleTransaction Tracking: Always store the transaction IDs returned from POST operationsduring low-usage periodstominimizemonitorimpact on network performancestatus anddevice availability