Inventory Parameter
Endpoints Summary
GET
/inventory_parameter/
Swagger ↗
GET
/inventory_parameter/{id}/
Swagger ↗
The Inventory Parameter API endpoints provide access to parameter definitions that control how device attributes are collected, displayed, and managed within the Zequenze Control platform. These endpoints allow you to retrieve
and manageparameterdefinitionsconfigurationsthatincludingdescribetheirthedataconfigurabletypes, validation rules, andmonitorablegroupingattributes of devices in your inventory. These endpoints are essential for understanding what parameters are available for device configuration, monitoring, and data collection across your managed infrastructure.information.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Inventory Parameter API providescategory accessmanages tothe parameter definitions thatused servethroughout asthe templatesZequenze Control platform for device configurationmanagement and monitoring. These parametersParameters define the structure and behavior of data fields that can be appliedcollected tofrom devicesmanaged devices, displayed in yourthe inventoryuser system.interface, and used for device configuration.
Each inventory parameter includes essentialcontains metadata such as:
These endpoints are essential for:
Key Concepts:
Common Integration Scenarios:
Endpoints
GET /inventory_parameter/
Description: Retrieves a paginated list of all inventory parameterparameters definitions.in the system. This endpoint is typically used to build dynamic configuration interfaces, understand available parameter types, or syncreturns parameter definitions including their data types, validation rules, grouping, and configuration properties. Use this endpoint to discover available parameters, understand their structure, or build custom interfaces that work with externalthe systems.platform's parameter system.
Use Cases:
- Building
dynamiccustom deviceconfigurationmanagementformsinterfacesinthataneedwebtoapplication
Full URL Example:
https://control.zequenze.com/api/v1/inventory_parameter/?group=515&limit=50&offset=0
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| group | integer | query | No | Filter parameters by group ID to retrieve only parameters belonging to a specific parameter group |
| limit | integer | query | No | Number of results to return per page (default pagination applies if not specified) |
| offset | integer | query | No | The initial index from which to return results for pagination |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_parameter/?group=515&limit=20&offset=0" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
{
"count": 45,87,
"next": "https://control.zequenze.com/api/v1/inventory_parameter/?group=515&limit=20&offset=20",
"previous": null,
"results": [
{
"id": 12,42,
"name": "Device Hostname"Serial Number",
"short_name": "hostname"device-serial",
"variable_name": "device_hostname"device_serial_number",
"type": "string",
"position": 1,
"required": true,
"read_only": false,true,
"metric": false,
"group": {
"id": 5,15,
"name": "NetworkDevice Configuration"Information",
"service": "network-device-mgmt",
"discovery_group": false,
"title": "NetworkBasic Settings"Device Information"
}
},
{
"id": 13,43,
"name": "DHCPFirmware Enabled"Version",
"short_name": "dhcp-enabled"firmware-version",
"variable_name": "dhcp_enabled"firmware_version",
"type": "boolean"readonly",
"position": 2,
"required": false,
"read_only": false,
"metric": true,
"group": {
"id": 5,
"name": "Network Configuration",
"service": "network-mgmt",
"discovery_group": false,
"title": "Network Settings"
}
},
{
"id": 14,
"name": "CPU Usage",
"short_name": "cpu-usage",
"variable_name": "cpu_usage_percent",
"type": "decimal",
"position": 3,
"required": false,
"read_only": true,
"metric": true,
"group": {
"id": 5,15,
"name": "NetworkDevice Configuration"Information",
"service": "network-device-mgmt",
"discovery_group": false,
"title": "NetworkBasic Settings"Device Information"
}
},
{
"id": 44,
"name": "Device Status",
"short_name": "device-status",
"variable_name": "device_status",
"type": "select",
"position": 3,
"required": true,
"read_only": false,
"metric": true,
"group": {
"id": 15,
"name": "Device Information",
"service": "device-mgmt",
"discovery_group": false,
"title": "Basic Device Information"
}
}
]
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Returns paginated list of inventory parameters |
GET /inventory_parameter/{id}/
Description: Retrieves detailed information about a specific inventory parameter by its unique ID. This endpoint provides complete parameter definition including all metadata,properties, typevalidation information,rules, and group associationsinformation. neededUse this endpoint when you need full details about a specific parameter for implementation.configuration or display purposes.
Use Cases:
RetrievingGettingdetailedcomplete details about a parameterspecificationsbeforecreatingusing it in deviceconfigurationsconfiguration
Full URL Example:
https://control.zequenze.com/api/v1/inventory_parameter/12/?group=542/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| id | integer | path | Yes | The unique identifier of the inventory parameter to retrieve |
| group | integer | query | No |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_parameter/12/42/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
{
"id": 12,42,
"name": "Device Hostname"Serial Number",
"short_name": "hostname"device-serial",
"variable_name": "device_hostname"device_serial_number",
"type": "string",
"position": 1,
"required": true,
"read_only": false,true,
"metric": false,
"group": {
"id": 5,15,
"name": "NetworkDevice Configuration"Information",
"service": "network-device-mgmt",
"discovery_group": false,
"title": "NetworkBasic Settings"Device Information"
}
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Returns the |
| 401 | Unauthorized - Invalid or missing authentication token |
Common Use Cases
Use Case 1: Building Dynamic Device Configuration Forms
RetrieveWhen creating custom interfaces for device management, use the list endpoint to retrieve all parameters for a specific groupgroup, then use their type and validation properties to dynamicallybuild generateappropriate deviceform configuration forms with proper field types, validation rules, and required field indicators.controls.
# Get all parameters for network configuration group
curl -X GET "https://control.zequenze.com/api/v1/inventory_parameter/?group=5" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Use Case 2: Parameter ValidationDiscovery Beforefor DeviceNew UpdatesServices
BeforeWhen updatingintegrating devicea configurations,new service, filter parameters by discovery groups to identify automatically discovered parameters, then retrieve specifictheir parameterfull details to validateunderstand what data types,is requiredbeing fields, and read-only restrictions.collected.
# Validate parameter constraints before configuration update
curl -X GET "https://control.zequenze.com/api/v1/inventory_parameter/12/" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Use Case 3: MonitoringMetric DashboardParameter SetupIdentification
IdentifyQuery parameters markedwhere asmetric: to metricstruebuildidentify which device attributes are being tracked historically, useful for building monitoring dashboards andor historicalanalytics trend analysis interfaces.features.
# Filter and identify metric parameters for dashboard creation
curl -X GET "https://control.zequenze.com/api/v1/inventory_parameter/?limit=100" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Use Case 4: ConfigurationValidation TemplateRule CreationImplementation
Retrieve parameter definitionsdetails to createunderstand reusablevalidation requirements (required, read_only, type) when implementing custom device configuration templates that can be applied across multiple devices of the same type.workflows.
Use Case 5: Discovery Parameter ManagementGroup Analysis
IdentifyUse parametersthe ingroup discoveryfilter groupsto thatanalyze containparameter automaticallyorganization detectedand understand how different device information,attributes whichare cancategorized bewithin promotedthe to regular configuration groups.platform.
Best Practices
-
Use
GroupPaginationFilteringEffectively: Whenbuildingretrievingconfigurationlargeinterfaces,parameterfilterlists,parametersusebyappropriategrouplimitvalues (20-100) toorganizebalancerelatedperformancesettingswithanddataimprove user experienceneeds -
RespectFilterParameterbyTypesGroup:AlwaysUsevalidatetheinputgroupparameter to narrow results to relevant parameter sets, improving performance and reducing dataaccording to the parameter'stypefield before submitting configuration changes
read_only: truemetric: truelimitrequiredtype field to ensure proper data handling - the platform supports 24 different parameter types with specific validation rules
Handle Read-Only Parameters: Respect the read_only flag when building positionmetric: true