Inventory Device Name Headless Operation
Endpoints Summary
GET
/inventory_device_name_headless_operation/
Swagger ↗
POST
/inventory_device_name_headless_operation/
Swagger ↗
The Inventory Device Name Headless Operation
endpointsAPIenableenables automated remote managementand monitoringof network devices throughprogrammaticheadless operations. These endpoints allow you toperformschedule and execute device operationslikesuch as gettingparameters,parameter values, setting configurations, adding objects, and deleting objects without manualintervention, making them ideal for bulk device management and automated workflows.intervention.
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 Headless Operation API category provides functionalityprogrammatic control over device management operations in your network infrastructure. This API is designed for executingnetwork automatedadministrators and developers who need to automate device configuration, monitoring, and maintenance tasks across multiple devices simultaneously.
Key Features:
Key Concepts:
getsetadd.objdel.objCommon Use Cases:
- Automated device configuration deployment
The API supportsoperates complexon variableTR-069/CWMP operationsprotocol standards, allowing you to interact with typedevice validationparameters andusing providesstandard real-timedevice statusmodel updatespaths to(e.g., help monitor operation progress.Device.ManagementServer.PeriodicInformInterval).
Endpoints
GET /inventory_device_name_headless_operation/
Description: Retrieves a list of scheduled or completed headless operations for devicesnetwork in your inventory.devices. This endpoint allows you to monitor the status ofexisting operations, filtercheck bytheir specific transaction IDs,status, and optionally update device status information before returning results.
Use Cases:
- Monitor the
progressstatus ofbulkscheduled device operations - Retrieve
results from previously executed headless operations
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name_headless_operation/?id=12345txn_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 |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_name_headless_operation/?update_status=true" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
[
{
"name": "router-branch-01"office-001",
"operation": "get",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval"
},
{
"variable_name": "Device.WiFi.SSID.1.Stats.BytesReceived"
}
]
},
{
"name": "switch-floor-02"router-office-002",
"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 list of |
| 401 | Unauthorized - Invalid or missing API token |
| 404 | Not Found - |
POST /inventory_device_name_headless_operation/
Description: Creates a new scheduled headless operation for onea ornetwork more devices in your inventory.device. This endpoint allows you to scheduledefine automateddevice operations such asincluding parameter retrieval, configuration updates,changes, object creation,management, orand objectvariable deletion across your device fleet.assignments.
Use Cases:
ExecuteSchedulebulkautomatic parameter retrieval from devices
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name_headless_operation/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| data | body | Yes |
Request Body Schema:
{
"name": "string (required)" - Name of the target device",
"operation": "string (required,required) one- of:Operation type: get, set, add.obj, del.obj)"obj",
"variables": [
{
"variable_name": "string (required)" - Device parameter path",
"value": "string (optional,optional) required- Value for 'set'set operations)"operations",
"value_type": "string (optional,optional) one- of:Data string,type: integer, boolean)"boolean, string"
}
]
}
cURL Example -(GET Get Operation:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_name_headless_operation/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name"Operation): "router-main-office",
"operation": "get",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval"
},
{
"variable_name": "Device.WiFi.SSID.1.Stats.BytesReceived"
}
]
}'
cURL Example - Set Operation:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_name_headless_operation/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "router-branch-network"005",
"operation": "get",
"variables": [
{"variable_name": "Device.ManagementServer.PeriodicInformInterval"},
{"variable_name": "Device.WiFi.SSID.1.Enable"}
]
}'
cURL Example (SET Operation):
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_name_headless_operation/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "router-branch-005",
"operation": "set",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval",
"value": "300"600",
"value_type": "integer"
},
{
"variable_name": "Device.ManagementServer.PeriodicInformEnable"WiFi.SSID.1.Enable",
"value": "true",
"value_type": "boolean"
}
]
}'
Example Response:
{
"name": "router-main-office"branch-005",
"operation": "get"set",
"variables": [
{
"variable_name": "Device.ManagementServer.PeriodicInformInterval",
"value": "600",
"value_type": "integer"
},
{
"variable_name": "Device.WiFi.SSID.1.Stats.BytesReceived"Enable",
"value": "true",
"value_type": "boolean"
}
],
"transaction_id": "op_67890",
"status": "scheduled",
"created_at": "2024-01-15T14:30:00Z"
}
Response Codes:
| Status | Description |
|---|---|
| 201 | Created - Operation successfully scheduled |
| 400 | Bad Request - Invalid operation parameters or malformed |
| 401 | Unauthorized - Invalid or missing API token |
| 404 | Not Found - Specified device does not |
Common Use Cases
Use Case 1: BulkAutomated WiFi Configuration Update
Schedule set operations across multiple access points to update WiFi settings like channel, power, or security configurations during maintenance windows.
Use Case 2: Network HealthDevice Monitoring
Use get operations toRegularly collect device statistics and performance metrics from multiple network devices onfor monitoring dashboards and alerting systems.
Endpoints: GET to check existing operations, POST to schedule new monitoring tasks
Use Case 2: Bulk Configuration Deployment
Deploy standardized configuration settings across multiple devices in a schedulednetwork, basissuch foras networkupdating monitoringsecurity andparameters reportingor dashboards.Wi-Fi settings.
Endpoints: POST to create set operations with standardized variable values
Use Case 3: ServiceNetwork ProvisioningMaintenance Automation
ImplementAutomate routine maintenance tasks like clearing statistics, updating inform intervals, or managing device objects during scheduled maintenance windows.
Endpoints: POST with add.obj and del.obj operations tofor createobject new service instances (like VLANs, SSIDs, or port configurations) when onboarding new customers or locations.management
Use Case 4: AutomatedDevice ComplianceStatus CheckingVerification
RegularlyVerify execute get operations to verifycurrent device configurations meet compliance requirements and generatesettings auditafter reports.deployment or troubleshooting to ensure consistency across the network.
Endpoints: GET with update_status=true to retrieve real-time device information
Use Case 5: CleanupIntegration with Network Management Systems
Integrate with existing NMS platforms to provide automated device management capabilities through API calls.
Endpoints: Both GET and MaintenancePOST
Usefor del.objcomprehensive operationsdevice tooperation remove unused configurations, expired certificates, or decommissioned service instances during routine maintenance.management
Best Practices
Operation Planning:Types:
TestUsegetoperationsonforanon-intrusivesmallparametersubsetretrievalofanddevices before executing bulk operationsmonitoring- Use
theupdate_status=truesetparameteroperationswhencarefullyyouasneedtheycurrentmodify deviceinformationconfigurations MonitorTestoperationadd.objresultsandusingdel.objtheoperationsGETinendpointdevelopmentwithenvironmentstransactionbeforeIDsproduction deployment
Variable Management:
- Always
specifyvalidatethe correctvalue_typefor set operations to ensure proper parameter validation
Error Handling:
- Implement retry logic for
operationsnetwork-relatedthat may fail due to temporary network issuesfailures - Check device connectivity status before scheduling operations
- Monitor operation
statusresults and implementtimeoutappropriate error handling forlong-runningfailed operations
Security Considerations:
update_status parameter to get real-time device status when Performance Optimization:
Schedule operations during maintenance windows for configuration changes Monitor API rate limits and implement appropriate throttlingSecurity Considerations:
Data Type Guidelines:
value_type for set operations to