Skip to content

NetBox Models

Model Types

A NetBox model represents a discrete object type such as a device or IP address. Per Django convention, each model is defined as a Python class and has its own SQL table. All NetBox data models can be categorized by type.

The Django content types framework can be used to reference models within the database. A ContentType instance references a model by its app_label and name: For example, the Site model is referred to as dcim.site. The content type combined with an object's primary key form a globally unique identifier for the object (e.g. dcim.site:123).

Features Matrix

  • Change logging - Changes to these objects are automatically recorded in the change log
  • Webhooks - NetBox is capable of generating outgoing webhooks for these objects
  • Custom fields - These models support the addition of user-defined fields
  • Export templates - Users can create custom export templates for these models
  • Tagging - The models can be tagged with user-defined tags
  • Journaling - These models support persistent historical commentary
  • Nesting - These models can be nested recursively to create a hierarchy
Type Change Logging Webhooks Custom Fields Export Templates Tags Journaling Nesting
Primary
Organizational
Nested Group
Component
Component Template

Models Index

Primary Models

Organizational Models

Nested Group Models

Component Models

Component Template Models