API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen
Entity · asset_templates

Asset Template

Schema-ID
asset_template
Collection
asset_templates
Permissions
  • Lesenasset_template_view
  • Anlegenasset_template_create
  • Ändernasset_template_edit
  • Löschenasset_template_delete

Felder

Asset Template

asset_templates4 Permissions

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

manufacturerstringerforderlich

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

1–200 Zeichen
modelstringerforderlich

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

1–200 Zeichen
slugstringerforderlich

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

max 200 ZeichenPattern
partNumberstringoptional
max 100 Zeichennullable
descriptionstringoptional
max 5000 Zeichennullable
commentsstringoptional
max 5000 Zeichennullable
heightUnitsnumberoptional

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

0 – 60
isFullDepthbooleanoptional
Default: truenullable
weightKgnumberoptional
≥ 0nullable
maxPowerDrawWnumberoptional

Maximum power draw in watts (peak)

≥ 0nullable
airflowstringoptional
front-to-rearrear-to-frontside-to-rearpassivemixednull
nullable
subdeviceRolestringoptional

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

parentchildnull
nullable
frontImageUrlstringoptional
max 2000 Zeichennullable
rearImageUrlstringoptional
max 2000 Zeichennullable
interfacesobject[]optional
max 512 Itemsnullable
namestringerforderlich
1–100 Zeichen
labelstringoptional
max 200 Zeichennullable
typestringerforderlich
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
mgmtOnlybooleanoptional
nullable
poeModestringoptional
pdpsenull
nullable
poeTypestringoptional
max 60 Zeichennullable
consolePortsobject[]optional
max 64 Itemsnullable
namestringerforderlich
1–100 Zeichen
labelstringoptional
max 200 Zeichennullable
typestringerforderlich
rj-45mini-din-8usb-ausb-busb-cusb-mini-ausb-mini-busb-micro-ausb-micro-busb-micro-abother
powerPortsobject[]optional
max 32 Itemsnullable
namestringerforderlich
1–100 Zeichen
labelstringoptional
max 200 Zeichennullable
typestringerforderlich
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
maximumDrawnumberoptional
≥ 0nullable
allocatedDrawnumberoptional
≥ 0nullable
powerOutletsobject[]optional
max 64 Itemsnullable
namestringerforderlich
1–100 Zeichen
labelstringoptional
max 200 Zeichennullable
typestringerforderlich
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
powerPortstringoptional

Name of the power-port this outlet is fed from

max 100 Zeichennullable
feedLegstringoptional
ABCnull
nullable
rearPortsobject[]optional
max 256 Itemsnullable
namestringerforderlich
1–100 Zeichen
labelstringoptional
max 200 Zeichennullable
typestringerforderlich
8p8c8p6c8p4c8p2cgg45tera-4ptera-2ptera-1p110-punchbncmrj21fclclc-apclshlsh-apcmpomtrjscsc-apc
positionsnumberoptional
1 – 1024nullable
sourcestringoptional

Origin of this template

MANUALNETBOX_LIBRARYIMPORT
Default: "MANUAL"read-only
sourceRefstringoptional

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

max 500 Zeichenread-onlynullable
isActivebooleanoptional
Default: true
tagsstring[]optional
max 32 Itemsnullable

Standard-Endpoints

Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:

  • GET /api/v1/asset_templates — Liste, paginiert + filterbar
  • GET /api/v1/asset_templates/<id> — Einzelne Entity
  • POST /api/v1/asset_templates — Anlegen
  • PATCH /api/v1/asset_templates/<id> — Teil-Update
  • DELETE /api/v1/asset_templates/<id> — Soft-Delete
  • GET /api/v1/asset_templates/<id>/timeline — Audit + Aktivitäten

Suche