Docs
Reference

Object types

The NetBox object types a design can build, and the key each is matched by.

A design can build any object type in the data model of your NetBox's version. An object's infra_type is the type's name in NetBox's data model: Region, Site, DeviceType, IPAddress, VLANGroup, ConsolePort. Its fields are the fields NetBox's API has for it, under NetBox's names, such as device_type and primary_ip4.

The render refuses a type written in snake case, such as device_type, or with a NetBox prefix, such as NetBoxDeviceType, and says what to write instead.

Each type has a key: the fields that identify an object of that type. A plan matches each object the design describes with the NetBox object that has the same key, so changing a key field describes another object. The common types and their keys:

infra_typeKey
Regionname
SiteGroupname, parent
Sitename
Locationname, site, parent
Tenantname
Manufacturername
RackTypemanufacturer, model
Rackname, site
DeviceRolename
Platformname, manufacturer
DeviceTypemanufacturer, model
Devicename, site
ModuleTypemanufacturer, model
ModuleBayname, device
Modulemodule_bay
Interfacename, device
ConsolePortname, device
PowerPortname, device
FrontPortname, device
RearPortname, device
Cabletermination_a, termination_b
VRFrd
Prefixprefix, vrf
IPAddressaddress, vrf
VLANGroupname
VLANvid, group
RIRname
ASNasn
Tagname
Clustername, group
VirtualMachinename
Aggregateprefix, rir
IPRangestart_address, end_address, vrf
Serviceparent, name
Contactname
VirtualChassisname
WirelessLANssid, group
MACAddressmac_address, assigned_object
RackReservationrack, units
ConfigTemplatename
ExportTemplatename

A prefix, IP address or VLAN with its VRF or group left out is the one with none: see Design structure.

No type is keyed by its slug. A site, tenant, region, manufacturer, role, tag, RIR, provider, circuit type, cluster type or group, or any other type with a slug is known by its name, as NetBox's own pages name it; the slug is a field like any other, and changing it is an update. A reference written as a slug still finds its object (see References). Where NetBox keeps a name unique only under a parent, as a region's, a tenant's or a device role's, Designs keys by the name alone, so two such objects with one name under different parents read as one; give them different names if a design is to tell them apart.

NetBox itself doesn't require the last ten of these to be unique: it will hold two contacts named the same, or the same service twice on one device. Designs matches by the key all the same, so a design describes one object per key, and two NetBox objects that share a key are read as the same one. A type NetBox gives no key and Designs has not chosen one for is refused at render rather than planned, since a plan couldn't say which object a line means.