Inventory Device Name
Endpoints Summary
GET
/inventory_device_name/
Swagger ↗
POST
/inventory_device_name/
Swagger ↗
GET
/inventory_device_name/{name}/
Swagger ↗
PUT
/inventory_device_name/{name}/
Swagger ↗
PATCH
/inventory_device_name/{name}/
Swagger ↗
DELETE
/inventory_device_name/{name}/
Swagger ↗
The
inventory_device_nameInventory Device Name APIendpoints provideprovides comprehensivedevicemanagement capabilities for networkinventorydevicessystems.in the Zequenze Control platform. These endpoints enableyou to perform completefull CRUD operationsonfornetworkdevicedevices,inventory management, includingretrievingdevicelistsregistration,withconfiguration,advanced filtering, creating new device entries, updating device configurations,monitoring, andmanaging device lifecyclecontrol operations like reboots and factory resets.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The inventory_device_nameInventory Device Name API category is designedthe core interface for managing network devices within an organization's infrastructure. These endpoints serve as the coreZequenze interfaceControl forsystem. This API category handles device inventorylifecycle management, allowingfrom youinitial to:registration through ongoing monitoring and maintenance operations.
Key capabilities include:
-
TrackDevicedeviceRegistrationinventory& Management:acrossAdd,multiple organizationsupdate, andlocationsremove devices from your inventory -
MonitorStatus Monitoring: Track devicestatusconnectivity, configuration state, andhealthoperationalwith real-time updatesstatus -
ManageRemotedeviceOperations:configurationsincluding firmware updates and settings synchronization
The API supportsuses bothdevice names as the primary identifier for individual device operationsoperations, while supporting various filtering options for bulk operations. All device data includes both user-configurable fields (byname, name)location, credentials) and bulksystem-generated operations across device collections. Each device is uniquely identified by its name and contains comprehensive metadata including hardware/software versions, serial numbers, location data, and operational status.
Key concepts include device typesinformation (configurationstatus, templates),connection organizationshistory, (forhardware multi-tenant environments), firmware management, and various operational states that control device behavior and connectivity.details).
Endpoints
GET /inventory_device_name/
Description: Retrieves a paginated list of all devices in your inventory with comprehensive filtering capabilities.inventory. This endpoint issupports essentialextensive filtering options to help you find specific devices based on status, type, organization, or recent activity. It's the primary endpoint for building device discovery,dashboards, monitoring dashboards,systems, and bulk operations. It supports real-time status updates and can report pending configuration changes.
Use Cases:
- Building device
monitoringinventory dashboards
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name/?status=1&organization=123&status=true&limit=50&offset=0
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| type | integer | query | No | Filter devices by device profile/type ID |
| status | string | query | No | Filter by device status. Use '0' |
| last_status_change_from | string | query | No | Filter devices |
| organization | integer | query | No | Filter devices by organization ID |
| limit | integer | query | No | Number of results per page (default pagination applies) |
| offset | integer | query | No | Starting index for pagination |
| pending | boolean | query | No | Include information about pending |
| update_status | boolean | query | No |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_name/?organization=123status=1&status=truelimit=25&pending=true" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
{
"count": 150,847,
"next": "https://control.zequenze.com/api/v1/inventory_device_name/?limit=2025&offset=20"25",
"previous": null,
"results": [
{
"id": 1,1001,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "router-hq-001"Router-Office-Main",
"customer_id": "CUST-001"12345",
"is_active": true,
"status": "Up",
"status_change": "2024-01-15T10:15T08:30:00Z",
"type": 5,
"type_short_name": "enterprise-router"CPE-Router",
"software_version": "1.4.2",
"hardware_version": "Rev-Rev C",
"manufacturer": "Cisco"TechCorp",
"unique_identifier": "MAC:00:1B:44:11:3A:B7",
"product_class": "InternetGatewayDevice",
"serial_number": "SN123456789"TC240115001",
"serial_number_alt": "ALT-240115-001",
"description": "Main headquartersoffice internet router",
"organization_id": 123,
"firmware_image": 89,
"firmware_image_is_pending": false,
"location_name": "HeadquartersCorporate -Headquarters",
Server"location": Room",45,
"location_short_name": "HQ-SR"Main",
"latitude": "40.7128",
"longitude": "-74.0060",
"username": "device_001",
"update_frequency": 300,
"address": "192.168.1.1",
"last_connection": "2024-01-15T14:22:00Z"33Z",
"last_configuration": "2024-01-14T09:15T09:15:20Z",
"last_change": "2024-01-15T09:15:20Z",
"created": "2024-01-10T10:00:00Z",
"debug": false,
"reboot": false,
"factory": false,
"device_factory": false,
"sync": false,
"reconf": false,
"pending_settings": "firmware_update,reboot_pending"None"
}
]
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Returns paginated device list |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
POST /inventory_device_name/
Description: Creates a new device entry in theyour inventory system.inventory. This endpoint isregisters used when onboardinga new networkdevice deviceswith orthe registeringsystem, devicesallowing thatyou willto connectset viainitial CWMP/TR-069configuration, protocols.assign it to an organization and location, and configure management credentials. The device name mustwill be uniqueavailable withinfor themanagement system.operations once created.
Use Cases:
OnboardingAddingnewnewlynetwork equipment
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name/
cURL Example:
curl -X POST "https://control.zequenze.com/api/v1/inventory_device_name/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "router-branch-005"Router-Branch-Office-A",
"customer_id": "CUST-005"67890",
"is_active": true,
"type": 5,
"serial_number": "SN987654321"TC240116002",
"description": "Branch office routerA -primary Site 005"router",
"organization_id": 123,124,
"location_name"location": "Branch Office 005",46,
"latitude": "42.3601"34.0522",
"longitude": "-71.0589"118.2437",
"username": "device_005"branch_router_a",
"password": "secure_password_123",
"update_frequency": 300
}'
Example Response:
{
"id": 156,1002,
"uuid": "660f9511-f3ac-52e5-b827-557766551111"660e8400-e29b-41d4-a716-446655440001",
"name": "router-branch-005"Router-Branch-Office-A",
"customer_id": "CUST-005"67890",
"is_active": true,
"status": "Down",null,
"status_change": "2024-01-15T15:45:00Z",null,
"type": 5,
"type_short_name": "enterprise-router"CPE-Router",
"software_version": null,
"hardware_version": null,
"manufacturer": null,
"unique_identifier": null,
"product_class": null,
"serial_number": "SN987654321"TC240116002",
"serial_number_alt": null,
"description": "Branch office routerA -primary Site 005"router",
"organization_id": 123,124,
"firmware_image": null,
"firmware_image_is_pending": false,
"location_name": null,
"Branchlocation": Office46,
005""location_short_name": "Branch-A",
"latitude": "42.3601"34.0522",
"longitude": "-71.0589"118.2437",
"username": "device_005"branch_router_a",
"password": "secure_password_123",
"update_frequency": 300,
"address": null,
"last_connection": null,
"last_configuration": null,
"last_change": null,
"created": "2024-01-15T15:45:16T10:30:00Z",
"debug": false,
"reboot": false,
"factory": false,
"device_factory": false,
"sync": false,
"reconf": false,
"pending_settings": null"None"
}
Response Codes:
| Status | Description |
|---|---|
| 201 | Created - Device successfully |
| 400 | Bad Request - Invalid device data or |
| 401 | Unauthorized - Invalid or missing API token |
GET /inventory_device_name/{name}/
Description: Retrieves detailed information aboutfor a specific device identified by its unique name. This endpoint provides complete device metadata,information including current status, configuration, hardware details, and configurationconnection details.history. It'sUse essentialthis for device-specific operationsmonitoring and detailed monitoring.troubleshooting.
Use Cases:
Getting completeDisplaying device detailsforin management interfaces- Checking device status
beforeandperforming operationsconnectivity - Retrieving device
credentials forconfigurationtasksbefore making changes Monitoring specificTroubleshooting devicehealthconnectivityand connectivityissues
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name/router-hq-001/Router-Office-Main/?pending=true&update_status=true
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| name | string | path | Yes | |
| pending | boolean | query | No | Include pending settings information in response |
| update_status | boolean | query | No |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_name/router-hq-001/Router-Office-Main/?pending=true" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
{
"id": 1,1001,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "router-hq-001"Router-Office-Main",
"customer_id": "CUST-001"12345",
"is_active": true,
"status": "Up",
"status_change": "2024-01-15T10:15T08:30:00Z",
"type": 5,
"type_short_name": "enterprise-router"CPE-Router",
"software_version": "1.4.2",
"hardware_version": "Rev-Rev C",
"manufacturer": "Cisco"TechCorp",
"unique_identifier": "cisco-1841-router"MAC:00:1B:44:11:3A:B7",
"product_class": "Router"InternetGatewayDevice",
"serial_number": "SN123456789"TC240115001",
"serial_number_alt": "ALT-SN-240115-001",
"description": "Main headquartersoffice internet router",
"organization_id": 123,
"firmware_image": 15,89,
"firmware_image_is_pending": true,false,
"location_name": "HeadquartersCorporate - Server Room"Headquarters",
"location": 45,
"location_short_name": "HQ-SR"Main",
"latitude": "40.7128",
"longitude": "-74.0060",
"username": "admin_hq_001"device_001",
"update_frequency": 300,
"address": "192.168.1.1",
"last_connection": "2024-01-15T14:16T14:22:00Z"33Z",
"last_configuration": "2024-01-14T09:15T09:15:00Z"20Z",
"last_change": "2024-01-14T09:15T09:15:00Z"20Z",
"created": "2024-01-01T08:10T10:00:00Z",
"debug": false,
"reboot": false,
"factory": false,
"device_factory": false,
"sync": false,
"reconf": false,
"pending_settings": "firmware_update,configuration_sync"WiFi password update, Firmware upgrade to v1.4.3"
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Returns |
| 401 | Unauthorized - Invalid or missing API token |
PUT /inventory_device_name/{name}/
Description: PerformsCompletely a complete update ofupdates a device's configuration,configuration by replacing all modifiableeditable fields with the provided data.fields. This endpoint isrequires usedall writable fields to be provided and will overwrite the existing device configuration. Use for comprehensivecomplete device reconfiguration,reconfiguration includingor changingwhen deviceyou profiles,need locations,to credentials,ensure andall operationalfields settings.are set to specific values.
Use Cases:
- Complete device reconfiguration
during migrations UpdatingStandardizing deviceprofilesconfigurationsandacrosstypesdeploymentsChangingMigrating devicelocationsettingsandtoorganizationalnewassignmenttemplates- Bulk configuration updates
viawithautomationcompletescriptsfield control
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name/router-hq-001/Router-Office-Main/
cURL Example:
curl -X PUT "https://control.zequenze.com/api/v1/inventory_device_name/router-hq-001/Router-Office-Main/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "router-hq-001"Router-Office-Main",
"customer_id": "CUST-001-12345-UPDATED",
"is_active": true,
"type": 7,5,
"serial_number": "SN123456789"TC240115001",
"serial_number_alt": "ALT-240115-001-UPD",
"description": "Main office internet router - Updated headquarters main router"configuration",
"organization_id": 123,
"firmware_image": 92,
"firmware_image_is_pending": true,
"location_name": "Corporate Headquarters - NewBuilding ServerA",
Room""location": 45,
"latitude": "40.7128",
"longitude": "-74.0060",
"username": "device_001_updated",
"password": "new_secure_password_456",
"update_frequency": 600,
"debug": false,
"reboot": false,
"factory": false,
"device_factory": false,
"sync": true,
"reconf": false
}'
Example Response:
{
"id": 1001,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "Router-Office-Main",
"customer_id": "CUST-12345-UPDATED",
"is_active": true,
"status": "Up",
"status_change": "2024-01-15T08:30:00Z",
"type": 5,
"type_short_name": "CPE-Router",
"software_version": "1.4.2",
"hardware_version": "Rev C",
"manufacturer": "TechCorp",
"unique_identifier": "MAC:00:1B:44:11:3A:B7",
"product_class": "InternetGatewayDevice",
"serial_number": "TC240115001",
"serial_number_alt": "ALT-240115-001-UPD",
"description": "Main office internet router - Updated configuration",
"organization_id": 123,
"firmware_image": 92,
"firmware_image_is_pending": true,
"location_name": "Corporate Headquarters - Building A",
"location": 45,
"location_short_name": "HQ-Main",
"latitude": "40.7128",
"longitude": "-74.0060",
"username": "admin_hq_001_new",
"password": "updated_secure_password"device_001_updated",
"update_frequency": 600,
"address": "192.168.1.1",
"last_connection": "2024-01-16T14:22:33Z",
"last_configuration": "2024-01-16T15:45:12Z",
"last_change": "2024-01-16T15:45:12Z",
"created": "2024-01-10T10:00:00Z",
"debug": false,
"reboot": false,
"factory": false,
"device_factory": false,
"sync": true,
"sync"reconf": truefalse,
"pending_settings": "Sync requested, Firmware upgrade to v1.4.5 pending"
}'
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Device configuration updated |
| 400 | Bad Request - Invalid data |
| 401 | Unauthorized - Invalid or missing API token |
PATCH /inventory_device_name/{name}/
Description: PerformsPartially a partial update ofupdates a device's configuration,configuration by modifying only the specified fields while leaving others unchanged.fields. This endpoint isallows you to update individual device properties without affecting other settings. It's ideal for making targeted updateschanges like changingupdating device status,credentials, triggering operations, or updatingmodifying specific configuration parameters.
Use Cases:
- Updating device credentials without changing other settings
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name/router-hq-001/Router-Office-Main/
cURL Example:
curl -X PATCH "https://control.zequenze.com/api/v1/inventory_device_name/router-hq-001/Router-Office-Main/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"description": "Updated devicedescription description"for main office router",
"debug"firmware_image": 95,
"firmware_image_is_pending": true,
"reboot": true,
"firmware_image": 18,
"firmware_image_is_pending"sync": true
}'
DeviceExample Operation Examples:
Reboot Device:Response:
curl{
"id": 1001,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "Router-Office-Main",
"customer_id": "CUST-12345-UPDATED",
"is_active": true,
"status": "Up",
"status_change": "2024-01-15T08:30:00Z",
"type": 5,
"type_short_name": "CPE-Router",
"software_version": "1.4.2",
"hardware_version": "Rev C",
"manufacturer": "TechCorp",
"unique_identifier": "MAC:00:1B:44:11:3A:B7",
"product_class": "InternetGatewayDevice",
"serial_number": "TC240115001",
"serial_number_alt": "ALT-240115-001-UPD",
"description": "Updated description for main office router",
"organization_id": 123,
"firmware_image": 95,
"firmware_image_is_pending": true,
"location_name": "Corporate Headquarters -X PATCHBuilding A",
"https://control.zequenze.com/api/v1/inventory_device_name/router-hq-001/"location": \
-H45,
"Authorization: Bearer YOUR_API_TOKEN" \
-Hlocation_short_name": "Content-Type:HQ-Main",
application/json""latitude": \"40.7128",
"longitude": "-d74.0060",
'{"username": "device_001_updated",
"update_frequency": 600,
"address": "192.168.1.1",
"last_connection": "2024-01-16T14:22:33Z",
"last_configuration": "2024-01-16T15:45:12Z",
"last_change": "2024-01-16T16:20:30Z",
"created": "2024-01-10T10:00:00Z",
"debug": false,
"reboot": true}'true,
Factory Reset:
curl -X PATCH "https://control.zequenze.com/api/v1/inventory_device_name/router-hq-001/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"factory": true}'
Sync Configuration:
curl -X PATCHfalse,
"https://control.zequenze.com/api/v1/inventory_device_name/router-hq-001/"device_factory": \false,
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"sync": true}'true,
"reconf": false,
"pending_settings": "Reboot requested, Sync requested, Firmware upgrade to v1.4.7 pending"
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Device partially updated |
| 400 | Bad Request - Invalid field values |
| 401 | Unauthorized - Invalid or missing API token |
DELETE /inventory_device_name/{name}/
Description: Permanently removes a device from theyour inventory system.inventory. This operation iscannot irreversiblebe undone and will delete all associated device data, configurationconfiguration, history, and relationships.settings. Use with caution,caution especiallyand ensure the device is no longer needed in productionyour environments.management system.
Use Cases:
Decommissioning retired network equipment
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_name/old-router-decommissioned/Router-Office-Main/
Parameters:
cURL Example:
curl -X DELETE "https://control.zequenze.com/api/v1/inventory_device_name/old-router-decommissioned/Router-Old-Decommissioned/" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Response Codes:
| Status | Description |
|---|---|
| 204 | No Content - Device successfully deleted |
| 401 | Unauthorized - Invalid or missing API token |
| 403 |
Common Use Cases
Use Case 1: Device Status Monitoring Dashboard
MonitorBuild a real-time dashboard showing device health across your network by regularly pollingusing the GET list endpoint with /inventory_device_name/status filtering and update_status=truefilteringregular bypolling.
# UseGet statusall filters to identify problematiconline devices
andhttps://control.zequenze.com/api/v1/inventory_device_name/?status=1&update_status=true
the# pending parameter to detect configuration drift.
Use Case 2: Automated Device Onboarding
Streamline new device deployment by using POST /inventory_device_name/ to pre-registerGet devices withthat theirrecently serialwent numbersoffline
andhttps://control.zequenze.com/api/v1/inventory_device_name/?status=0&last_status_change_from=2024-01-15T00:00:00
credentials, then use PATCH operations to update configurations as devices come online and report their capabilities.
Use Case 3:Bulk Firmware Update Management
Manage firmware deployments by using GET to identify devices needing updates, PATCH to set firmware_image and firmware_image_is_pending=true, then monitor the pending_settings field to track update progress across your device fleet.
Use Case 4: Bulk Device Operations
Perform maintenance operationsupdates across multiple devices by firstfiltering usingby GETdevice withtype appropriateand filters to identify target devices,organization, then iterate through the results using PATCH to triggerassign firmware images.
# Find all CPE routers in organization 123
https://control.zequenze.com/api/v1/inventory_device_name/?type=5&organization=123
# Update firmware for specific devices using PATCH with firmware_image and firmware_image_is_pending
Device Provisioning Workflow
Automate device deployment by creating devices with POST, configuring initial settings, then using device operations liketo sync and activate.
reboot# 1. Create device with POST # 2. Use PATCH to set sync=true to synchronize initial configuration # 3. Monitor device status until it comes online,
syncRemote orDevice reconfOperations
Execute remote operations on yourdevices maintenanceusing requirements.PATCH with operation flags like reboot, sync, factory reset.
# Reboot a device
PATCH /inventory_device_name/device-name/ with {"reboot": true}
# Factory reset and reconfigure
PATCH /inventory_device_name/device-name/ with {"factory": true, "reconf": true}
Use Case 5: Multi-OrganizationLocation-Based Device Management
InOrganize multi-tenantand environments,manage usedevices theby geographic location using location fields and filtering for field technician workflows.
#organizationfilterGetonallGETdevicesrequestsattoascopespecific location https://control.zequenze.com/api/v1/inventory_device_name/?location=45 # Update deviceoperationslocationtoPATCHspecific/inventory_device_name/device-name/customers,withensuring{"location":proper46,data"latitude":isolation"34.0522",while"longitude":maintaining"-118.2437"}centralized management capabilities.
Best Practices
-
Use
pagination wiselyPagination:WhenAlwaysretrievingimplement pagination for list requests to avoid timeouts with large deviceinventories,inventories.implement proper paginationStart with reasonablelimitvalueslimits (50-100)25-100to avoid timeout issues and improve response times.devices). -
LeverageDevicefilteringNamingeffectivelyStrategy:AlwaysUseuseconsistent,specificmeaningfulfiltersdevice(organization,namestype,thatstatus)includeratherlocationthanorretrievingfunctionallidentifiers.devicesDeviceandnamesfilteringareclient-side.theThisprimaryreduceslookupbandwidth and improves performance.mechanism. -
HandleStatusdevice operations carefullyMonitoring:OperationsUselikethereboot,factory, anddevice_factoryupdate_status=trueareparameterimmediatejudiciouslyandasirreversible.itAlwaystriggersverifyreal-timedevicestatusnameschecksandwhichconsidercanmaintenanceimpactwindowsperformance.beforeConsidertriggeringcachingthesestatusoperations.data for dashboard applications. -
MonitorBulkpending settingsOperations:RegularForpollingbulkofupdates,theretrievedevicepending_settingsfieldlistshelpsfirst,trackthenconfigurationusesynchronizationPATCHandforidentifyindividual deviceswithratherstalethanconfigurationsPUTthattomayavoidneedoverwritingattention.unrelated settings. -
Error Handling: Implement proper
errorretryhandling:logic for 5xx errors and respect rate limits. Device operationscanmayfailtakeduetime toconnectivitycomplete,issues,sodevice states, or conflicts. Implement retry logic with exponential backoffpoll fortransientstatusfailures.changes rather than assuming immediate completion. -
UseSecurity:meaningfulNever log or store devicenames:passwordsDeviceinnamesplainservetext.asUse theprimarypasswordidentifierfieldthroughout the API. Use consistent naming conventions that include location, function, and sequence informationonly foreasiersettingmanagement.new credentials, not for retrieval. -
SecureOperationcredential managementFlags: Whencreatingusingoroperationupdatingflagsdevices(reboot,withsync,authenticationfactory),credentials,set them totrueto trigger the operation. The system will handle resetting the flags after execution.
Firmware Management: Always verify firmware compatibility before setting firmware_image_is_pending=true. Monitor the device after firmware updates to ensure passwordssuccessful are generated securely and stored appropriately in your management systems.deployment.