API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · asset_templates

Asset Template

Schema-ID
asset_template
Collection
asset_templates
Permissions
  • Lezenasset_template_view
  • Aanmakenasset_template_create
  • Wijzigenasset_template_edit
  • Verwijderenasset_template_delete

Velden

Asset Template

asset_templates4 permissions

Device-type template (manufacturer, model, dimensions, port layout) — used by assets to inherit physical characteristics.

manufacturerstringvereist

Manufacturer name (e.g. "Cisco", "Dell", "APC")

1–200 tekens
modelstringvereist

Device model identifier (e.g. "Catalyst 9300-48P")

1–200 tekens
slugstringvereist

URL-safe slug, unique within tenant — normally "manufacturer/model"

max. 200 tekensPattern
partNumberstringoptioneel
max. 100 tekensnullable
descriptionstringoptioneel
max. 5000 tekensnullable
commentsstringoptioneel
max. 5000 tekensnullable
heightUnitsnumberoptioneel

Height in rack units (HE). Use 0.5 for half-U devices.

0 – 60
isFullDepthbooleanoptioneel
Default: truenullable
weightKgnumberoptioneel
≥ 0nullable
maxPowerDrawWnumberoptioneel

Maximum power draw in watts (peak)

≥ 0nullable
airflowstringoptioneel
front-to-rearrear-to-frontside-to-rearpassivemixednull
nullable
subdeviceRolestringoptioneel

"parent" = chassis that holds child modules (blades); "child" = blade module

parentchildnull
nullable
frontImageUrlstringoptioneel
max. 2000 tekensnullable
rearImageUrlstringoptioneel
max. 2000 tekensnullable
interfacesobject[]optioneel
max. 512 itemsnullable
namestringvereist
1–100 tekens
labelstringoptioneel
max. 200 tekensnullable
typestringvereist
1000base-t2.5gbase-t5gbase-t10gbase-t100base-tx1000base-x-sfp10gbase-x-sfpp25gbase-x-sfp2840gbase-x-qsfpp100gbase-x-qsfp28100gbase-x-qsfpdd400gbase-x-qsfpdd1000base-x-gbicieee802.11aieee802.11bieee802.11gieee802.11nieee802.11acieee802.11axieee802.11ay
mgmtOnlybooleanoptioneel
nullable
poeModestringoptioneel
pdpsenull
nullable
poeTypestringoptioneel
max. 60 tekensnullable
consolePortsobject[]optioneel
max. 64 itemsnullable
namestringvereist
1–100 tekens
labelstringoptioneel
max. 200 tekensnullable
typestringvereist
rj-45mini-din-8usb-ausb-busb-cusb-mini-ausb-mini-busb-micro-ausb-micro-busb-micro-abother
powerPortsobject[]optioneel
max. 32 itemsnullable
namestringvereist
1–100 tekens
labelstringoptioneel
max. 200 tekensnullable
typestringvereist
iec-60320-c6iec-60320-c8iec-60320-c14iec-60320-c16iec-60320-c20iec-60320-c22iec-60309-p-n-e-4hiec-60309-p-n-e-6hiec-60309-p-n-e-9hiec-60309-2p-e-4hiec-60309-2p-e-6hiec-60309-2p-e-9hiec-60309-3p-e-4hiec-60309-3p-e-6hiec-60309-3p-e-9hiec-60309-3p-n-e-4hiec-60309-3p-n-e-6hiec-60309-3p-n-e-9hnema-5-15pnema-5-20p
maximumDrawnumberoptioneel
≥ 0nullable
allocatedDrawnumberoptioneel
≥ 0nullable
powerOutletsobject[]optioneel
max. 64 itemsnullable
namestringvereist
1–100 tekens
labelstringoptioneel
max. 200 tekensnullable
typestringvereist
iec-60320-c5iec-60320-c7iec-60320-c13iec-60320-c15iec-60320-c19iec-60320-c21nema-5-15rnema-5-20rnema-l5-15rnema-l5-20rnema-l5-30rnema-l6-20rnema-l6-30rcs6364ccs8264cdc-terminalsaf-d-gridother
powerPortstringoptioneel

Name of the power-port this outlet is fed from

max. 100 tekensnullable
feedLegstringoptioneel
ABCnull
nullable
rearPortsobject[]optioneel
max. 256 itemsnullable
namestringvereist
1–100 tekens
labelstringoptioneel
max. 200 tekensnullable
typestringvereist
8p8c8p6c8p4c8p2cgg45tera-4ptera-2ptera-1p110-punchbncmrj21fclclc-apclshlsh-apcmpomtrjscsc-apc
positionsnumberoptioneel
1 – 1024nullable
sourcestringoptioneel

Origin of this template

MANUALNETBOX_LIBRARYIMPORT
Default: "MANUAL"read-only
sourceRefstringoptioneel

Original reference (e.g. NetBox library path) for traceability

max. 500 tekensread-onlynullable
isActivebooleanoptioneel
Default: true
tagsstring[]optioneel
max. 32 itemsnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/asset_templates — Lijst, gepagineerd + filterbaar
  • GET /api/v1/asset_templates/<id> — Enkele entity
  • POST /api/v1/asset_templates — Aanmaken
  • PATCH /api/v1/asset_templates/<id> — Gedeeltelijke update
  • DELETE /api/v1/asset_templates/<id> — Soft-delete
  • GET /api/v1/asset_templates/<id>/timeline — Audit + activiteiten

Zoeken