Inventory Device Name Variables
Endpoints Summary
GET
/inventory_device_name_variables/
Swagger ↗
PUT
/inventory_device_name_variables/{parent__name}/
Swagger ↗
The Inventory Device Name Variables API
providesenablesaccessmanagementtoof device configurationparametersvariablesand settings withinin the ZequenzecontrolControlsystem.platform. These endpoints allow you to retrieve and update device-specificvariablessettingsbyanddevice name,parameters, making it easy tomanageconfigureconfigurationandparametersmonitor device variables across yourdevice inventory programmatically.inventory.
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 Variables API enablesprovides comprehensive access to device configuration settings within your inventory management system. These endpoints are essential for:
This API category works with device settings that have configurable variables, allowing you to maintain consistent configurations across your device inventory. The endpoints support both read and write operations, enabling complete lifecycle management of device configurationvariables settingsfrom andinitial parameterssetup through aongoing device-centric approach. This API category is designed for scenarios where you need to:
The endpoints work together to provide a complete device configuration management workflow. The GET endpoint allows you to query current device settings with flexible filtering options, while the PUT endpoint enables updates to device configurations. Both endpoints support advanced features like wildcard matching, forced updates, and detailed metadata retrieval.maintenance.
Key concepts include:to understand:
-
Variable Names: Internal
parameteridentifiers used by the system for device parameters -
Parameter Names: Human-readable names for
configurationdevice settings - Short Names: Abbreviated parameter identifiers for compact displays
-
Pending
StatusSettings:IndicatesChangeswhetherthatconfigurationhavechangesbeenareconfiguredwaitingbut not yet applied tobe applieddevices -
Extra Information: Additional metadata and
extendedcontextparameteraboutdetailsparameters
Endpoints
GET /inventory_device_name_variables/
Description: Retrieves device configuration parametersvariables and settings filteredbased byon devicespecified name.filters. This endpoint is essential for querying current device configurations, checking parameter values, and monitoring pending changes,changes andacross extractingyour specific parameter sets. It supports flexible filtering by parameter names, variable names, or short names, with optional wildcard matching for pattern-based queries.inventory.
Use Cases:
Retrieve all configuration parameters for a specificAudit deviceby name
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name_variables/?parent__name=router-01¶meter__variable_name=network_config,snmp_communityhostname,ip_address&extra=true&dates=true
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| parent__name | string | query | Yes | Filter settings by device name. |
| parameter__variable_name | string | query | No | Comma-separated list of |
| parameter__name | string | query | No | Comma-separated list of human-readable parameter names to |
| parameter__short_name | string | query | No | Comma-separated list of parameter short names for compact identification |
| limit | integer | query | No | Number of results |
| offset | integer | query | No | Starting index for |
| pending | boolean | query | No | |
| wildcard | boolean | query | No | Enable wildcard (*) matching in variable_name or |
| force_update | boolean | query | No | |
| extra | boolean | query | No | Include additional metadata and |
| dates | boolean | query | No | Include |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_name_variables/?parent__name=router-switch-core-01¶meter__variable_name=network_config,device_namemanagement_ip,snmp_community&extra=true&dates=true" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
{
"count": 15,3,
"next": "https://control.zequenze.com/api/v1/inventory_device_name_variables/?limit=10&offset=10&parent__name=router-01",null,
"previous": null,
"results": [
{
"id": 1247,1547,
"name": "NetworkManagement Configuration"IP Address",
"variable_name": "network_config"management_ip",
"value": "192.168.1.100/24"100",
"type": "ipv4_network"ipv4_address",
"short_name": "net_cfg"mgmt_ip",
"extra": true,false,
"extra_value": "gateway=192.168.1.1,dns=8.8.8.8"Primary management interface",
"pending": false
},
{
"id": 1248,1548,
"name": "DeviceSNMP Name"Community String",
"variable_name": "device_name"snmp_community",
"value": "router-01"public",
"type": "string",
"short_name": "snmp_comm",
"extra": true,
"extra_value": "Read-only community for monitoring",
"pending": true
},
{
"id": 1549,
"name": "Device Location",
"variable_name": "device_location",
"value": "Data Center Rack 15",
"type": "string",
"short_name": "location",
"extra": false,
"extra_value": null,
"pending": false
},
{
"id": 1249,
"name": "SNMP Community",
"variable_name": "snmp_community",
"value": "private_updated",
"type": "string",
"short_name": "snmp",
"extra": false,
"extra_value": null,
"pending": true
}
]
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Returns device |
| 400 | Bad Request - |
| 401 | Unauthorized - Invalid or missing authentication token |
| 404 | Not Found - |
PUT /inventory_device_name_variables/{parent__name}/
Description: Updates device configuration parametersvariables for thea specifiedspecific device name.device. This endpoint allows you to modify device settings by sending parameter data in thebulk, requestapplying body.new Thevalues operationto updatesone existingor more parameters simultaneously. Changes may be applied immediately or creates new ones as needed, with changes typically marked as pending untildepending appliedon toyour thesystem actual device.configuration.
Use Cases:
- Update
networkdevice configuration settingsforafteranetworkspecificchanges
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name_variables/router-01/branch-05/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| parent__name | string | path | Yes | |
| data | string | body | Yes | JSON payload containing |
cURL Example:
curl -X PUT "https://control.zequenze.com/api/v1/inventory_device_name_variables/router-01/switch-access-12/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"parameters"variable_name": ["management_ip",
"value": "192.168.1.125"
}'
Example Request Body:
{
"variable_name": "snmp_community"management_ip",
"value": "new_community_string"
}192.168.1.125",
{
"variable_name"name": "poll_interval",Management "value":IP "300"Address"
}
]
}'
Example Response:
{
"id": 1249,1892,
"name": "SNMPManagement Community"IP Address",
"variable_name": "snmp_community"management_ip",
"value": "new_community_string"192.168.1.125",
"type": "string"ipv4_address",
"short_name": "snmp"mgmt_ip",
"extra": false,
"extra_value": null,"Primary management interface",
"pending": true
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - |
| 400 | Bad Request - Invalid |
| 401 | Unauthorized - Invalid or missing authentication token |
| 404 | Not Found - Device |
| 422 | Unprocessable Entity - |
Common Use Cases
Use Case 1: Device Configuration Audit
QueryRetrieve all parametersconfiguration variables for specific devices to perform configuration audits orrequiring compliance checks.verification. Use the extraGET endpoint with extra=true and dates parametersdates=true to get complete configuration history.history and metadata for audit trails.
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_name_variables/?parent__name=critical-router&extra=true&dates=true"
Use Case 2: Bulk NetworkIP ConfigurationAddress UpdatesManagement
Update network settings across multipleQuery devices by iteratingIP-related through devicevariable names andusing applyingwildcard consistentmatching configuration(wildcard=true parameters.with parameter__variable_name=*ip*) to inventory all IP assignments across your network infrastructure.
Use Case 3: Pending Changes MonitoringReview
Monitor configuration changes awaiting deployment by using pending=true parameter to identify devices with pendingstaged configurationbut changesnot toyet trackapplied deploymentsettings, statusensuring andproper ensurechange changesmanagement are properly applied.workflows.
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_name_variables/?parent__name=router-01&pending=true"
Use Case 4: ParameterStandardized PatternDevice MatchingProvisioning
UseUpdate wildcardmultiple filteringconfiguration parameters for new devices using the PUT endpoint to findapply all parameters matching organization-specific patterns, useful for discovering related configuration settings acrosslike devices.SNMP communities, NTP servers, and management credentials.
Use Case 5: Emergency Configuration Template DeploymentUpdates
ApplyForce standardizedreal-time configuration templatesrefresh using force_update=true during network incidents to devicesensure byyou're updatingworking multiple parameters simultaneously throughwith the PUTmost endpoint.current device state before making critical changes.
Best Practices
-
Use Pagination Effectively: For large inventories, implement proper pagination using
limitandoffsetparameters to avoid timeouts and improve performance