Inventory Device Headless Operation
Endpoints Summary
GET
/inventory_device_headless_operation/
Swagger ↗
POST
/inventory_device_headless_operation/
Swagger ↗
The Inventory Device Headless Operation API enables automated device management operations
withoutonrequiringnetworkuserdevicesinterfacethroughinteractions.programmatic control. These endpoints allow you to schedule and execute device operationslikesuchparameterasretrieval,retrievingconfigurationparameters,updates,setting configurations, andobjectmanaging objects without manual intervention, making them ideal for bulk device managementacrossandyourautomateddevice inventory programmatically.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 Headless Operation API provides a powerful interface for managing devicenetwork operationsdevices at scale through automated, programmatic interactions.programmatically. This API category isfocuses designedon forexecuting systemoperations administratorson anddevices developersthat whoare needpart toof performyour bulkinventory devicewithout operations,requiring scheduledirect maintenanceuser tasks, or integrate device management into larger automation workflows.interaction.
Key Concepts:Capabilities:
-
HeadlessGet Operations:DeviceRetrievemanagementspecifictasksparameterthatvaluesexecutefromwithoutdevicesuser(e.g.,interfaceconfigurationinteraction,settings,idealstatistics,fordeviceautomation and batch processinginformation) -
OperationSetTypesOperations:Four primary operations supported - Get (retrieve parameters), Set (update configurations), Add Object (create newUpdate deviceobjects),configurationsandbyDeletesettingObjectparameter(removevaluesdevicewithobjects)specified data types -
VariableAddManagementObject Operations:FlexibleCreateparameter system supporting different data types (integer, boolean, string) for devicenew configuration objects on devices dynamically -
TransactionDeleteTrackingObject Operations:EachRemoveoperationexistingisconfigurationassignedobjectsafromunique ID for monitoring and status trackingdevices
Common IntegrationUse Scenarios:Cases:
- Bulk configuration updates across multiple devices
The operations are designed to work with TR-069/CWMP compatible devices and support standard device management protocols. All operations can be tracked and their status updated using the built-in helpers.
Endpoints
GET /inventory_device_headless_operation/
Description: Retrieves a list of scheduled orheadless completedoperations devicefor operations.devices in your inventory. This endpoint allows you to monitor the status of headlessexisting operations, trackcheck their progress,configuration, and retrieveoptionally operation results. You can filter by specific operation IDs or request real-timeupdate device status updates.before returning the information. Use this to track ongoing operations or verify operation parameters before execution.
Use Cases:
- Monitor the
progressstatus ofbulk device configuration updates
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_headless_operation/?id=12345&update_status=true
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| id | string | query | No | ID of the specific scheduled transaction to |
| update_status | boolean | query | No | When true, uses configured helpers to |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_headless_operation/?update_status=true" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
[
{
"id": 12345,
"operation": "get",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval"
},
{
"variable_name": "Device.WiFi.SSID.2.Stats.BytesReceived"1.SSID"
},
{
"variable_name": "Device.DeviceInfo.SerialNumber"
}
]
},
{
"id": 12346,
"operation": "set",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval",
"value": "300",
"value_type": "integer"
},
{
"variable_name": "Device.ManagementServer.PeriodicInformEnable",
"value": "1",
"value_type": "boolean"
}
]
}
]
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Returns |
| 401 | Unauthorized - Invalid or missing |
| 404 | Not Found - |
POST /inventory_device_headless_operation/
Description: Creates a new headless operation for a device operationin your inventory. This endpoint schedules operations to be executed on targetnetwork devices.devices, This endpoint allows you to schedule device management tasks such asincluding parameter retrieval, configuration updates, orand object management operations.management. The operation will be queued for execution and canexecuted beaccording monitoredto usingyour thesystem's GETscheduling endpoint.configuration.
Use Cases:
- Schedule bulk configuration updates across multiple devices
InitiateSet up automateddeviceparametercollection formonitoring- Create
objectnewmanagementWi-FioperationsSSIDsforordevicenetworkprovisioningconfigurations SetRemoveupoutdatedrecurringconfiguration objects
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_headless_operation/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| data | string | body | Yes | JSON payload containing the operation details including device ID, operation type, and variables |
Request Body Structure:
{
"id": 12345,
"operation": "get|set|add.obj|del.obj",
"variables": [
{
"variable_name": "Device.Parameter.Name",
"value": "parameter_value",
"value_type": "string|integer|boolean"
}
]
}
cURL Example:Example - Get Operation:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_headless_operation/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": 67890,
"operation": "set",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval",
"value": "600",
"value_type": "integer"
},
{
"variable_name": "Device.ManagementServer.PeriodicInformEnable",
"value": "1",
"value_type": "boolean"
}
]
}'
Example Request Body (Get Operation):
{
"id": 67890,12345,
"operation": "get",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval"
},
{
"variable_name": "Device.WiFi.SSID.1.BSSID"SSID"},
{"variable_name": "Device.DeviceInfo.ModelName"}
]
}'
cURL Example Request- Body (Set Operation):Operation:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_headless_operation/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": 67890,12345,
"operation": "set",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval",
"value": "300",
"value_type": "integer"
},
{
"variable_name": "Device.ManagementServer.PeriodicInformEnable"WiFi.SSID.1.SSID",
"value": "true"MyNewNetwork",
"value_type": "boolean"string"
}
]
}'
Example Response:
{
"id": 67890,12345,
"operation": "set",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval",
"value": "300",
"value_type": "integer"
},
{
"variable_name": "Device.ManagementServer.PeriodicInformEnable"WiFi.SSID.1.SSID",
"value": "true"MyNewNetwork",
"value_type": "boolean"string"
}
]
}
Response Codes:
| Status | Description |
|---|---|
| 201 | Created - Operation successfully scheduled |
| 400 | Bad Request - Invalid operation |
| 401 | Unauthorized - Invalid or missing |
Common Use Cases
Use Case 1: Bulk DeviceWi-Fi Configuration Update
Schedule configuration changesupdates across multiple devicesaccess bypoints creatingto setchange operationsSSID fornames, eachpasswords, device.or Monitorsecurity progresssettings. usingUse the GETset endpointoperation with Wi-Fi related parameters to trackupdate completionnetwork statusconfigurations and identify any failed operations.remotely.
Use Case 2: AutomatedDevice DeviceHealth Monitoring
CreateSet recurringup automated parameter collection using get operations to monitor device status, performance metrics, and configuration drift. Schedule regular retrieval of key parameters like uptime, memory usage, and connection statistics.
Use Case 3: Dynamic Network Object Management
Use add.obj and del.obj operations to dynamically manage network configurations such as creating new SSID instances, adding firewall rules, or managing VLAN configurations based on business requirements.
Use Case 4: Compliance Auditing
Implement automated compliance checking by retrieving configuration parameters and comparing them against organizational standards. Use get operations to collect current settings for security auditing purposes.
Use Case 5: Remote Troubleshooting
Schedule diagnostic operations to collect device parameters for monitoring dashboards. Use the update_status parameter to ensure real-time data collection for critical metrics.
Use Case 3: Device Provisioning Workflow
Combine add.obj operations to create new device objects during automated provisioning, followed by set operations to configure initial parametersinformation and getstatistics operationswhen toissues verifyare successfulreported. deployment.
Use Case 4: Network Maintenance Automation
Schedule device parameter collection before maintenance windows, perform configuration updates, and validate changes afterward using a combination of get and set operations.
Use Case 5: Compliance Auditing
Use get operations to periodicallygather collectcomprehensive device configurationstate parametersinformation andfor compare against compliance baselines, automatically generating reports of configuration drift.troubleshooting.
Best Practices
-
Operation
SequencingPlanning:WhenAlwaysperforming multipletest operations ontheasamesmalldevice,subsetallowofsufficientdevicestimebeforebetweenscheduling bulk operationstoacrossensureyourproperentireexecution and avoid conflictsinventory -
Error Handling: Always check operation status using the GET endpoint before assuming success, especially for critical configuration changes
update_status=true parameter