API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · asset_templates

Asset Template

ID du schéma
asset_template
Collection
asset_templates
Autorisations
  • Lireasset_template_view
  • Créerasset_template_create
  • Modifierasset_template_edit
  • Supprimerasset_template_delete

Champs

Asset Template

asset_templates4 autorisations

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

manufacturerstringobligatoire

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

1–200 caractères
modelstringobligatoire

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

1–200 caractères
slugstringobligatoire

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

max. 200 caractèresMotif
partNumberstringfacultatif
max. 100 caractèresnullable
descriptionstringfacultatif
max. 5000 caractèresnullable
commentsstringfacultatif
max. 5000 caractèresnullable
heightUnitsnumberfacultatif

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

0 – 60
isFullDepthbooleanfacultatif
Par défaut : truenullable
weightKgnumberfacultatif
≥ 0nullable
maxPowerDrawWnumberfacultatif

Maximum power draw in watts (peak)

≥ 0nullable
airflowstringfacultatif
front-to-rearrear-to-frontside-to-rearpassivemixednull
nullable
subdeviceRolestringfacultatif

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

parentchildnull
nullable
frontImageUrlstringfacultatif
max. 2000 caractèresnullable
rearImageUrlstringfacultatif
max. 2000 caractèresnullable
interfacesobject[]facultatif
max. 512 élémentsnullable
namestringobligatoire
1–100 caractères
labelstringfacultatif
max. 200 caractèresnullable
typestringobligatoire
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
mgmtOnlybooleanfacultatif
nullable
poeModestringfacultatif
pdpsenull
nullable
poeTypestringfacultatif
max. 60 caractèresnullable
consolePortsobject[]facultatif
max. 64 élémentsnullable
namestringobligatoire
1–100 caractères
labelstringfacultatif
max. 200 caractèresnullable
typestringobligatoire
rj-45mini-din-8usb-ausb-busb-cusb-mini-ausb-mini-busb-micro-ausb-micro-busb-micro-abother
powerPortsobject[]facultatif
max. 32 élémentsnullable
namestringobligatoire
1–100 caractères
labelstringfacultatif
max. 200 caractèresnullable
typestringobligatoire
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
maximumDrawnumberfacultatif
≥ 0nullable
allocatedDrawnumberfacultatif
≥ 0nullable
powerOutletsobject[]facultatif
max. 64 élémentsnullable
namestringobligatoire
1–100 caractères
labelstringfacultatif
max. 200 caractèresnullable
typestringobligatoire
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
powerPortstringfacultatif

Name of the power-port this outlet is fed from

max. 100 caractèresnullable
feedLegstringfacultatif
ABCnull
nullable
rearPortsobject[]facultatif
max. 256 élémentsnullable
namestringobligatoire
1–100 caractères
labelstringfacultatif
max. 200 caractèresnullable
typestringobligatoire
8p8c8p6c8p4c8p2cgg45tera-4ptera-2ptera-1p110-punchbncmrj21fclclc-apclshlsh-apcmpomtrjscsc-apc
positionsnumberfacultatif
1 – 1024nullable
sourcestringfacultatif

Origin of this template

MANUALNETBOX_LIBRARYIMPORT
Par défaut : "MANUAL"lecture seule
sourceRefstringfacultatif

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

max. 500 caractèreslecture seulenullable
isActivebooleanfacultatif
Par défaut : true
tagsstring[]facultatif
max. 32 élémentsnullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/asset_templates — Liste, paginée et filtrable
  • GET /api/v1/asset_templates/<id> — Une entité
  • POST /api/v1/asset_templates — Créer
  • PATCH /api/v1/asset_templates/<id> — Mise à jour partielle
  • DELETE /api/v1/asset_templates/<id> — Suppression logique
  • GET /api/v1/asset_templates/<id>/timeline — Audit et activités

Recherche