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

Asset Port

ID du schéma
asset_port
Collection
asset_ports
Autorisations
  • Lireasset_port_view
  • Créerasset_port_create
  • Modifierasset_port_edit
  • Supprimerasset_port_delete
Relations

Champs

Asset Port

asset_ports4 autorisations

Physical port instance on an asset. Can be linked via cables.

assetIduuidobligatoire→ asset

Asset this port belongs to

namestringobligatoire
1–100 caractères
labelstringfacultatif
max. 200 caractèresnullable
categorystringobligatoire
interfaceconsolepower_inpower_outrear
portTypestringobligatoire

NetBox-style type (e.g. "1000base-t", "sfp+", "iec-60320-c14"). Validated against category on the frontend.

1–60 caractères
sidestringfacultatif
FRONTREARnull
Par défaut : "FRONT"nullable
positionXnumberfacultatif
0 – 100nullable
positionYnumberfacultatif
0 – 100nullable
speedstringfacultatif
max. 40 caractèresnullable
mgmtOnlybooleanfacultatif
nullable
poeModestringfacultatif
pdpsenull
nullable
poeTypestringfacultatif
max. 60 caractèresnullable
macAddressstringfacultatif
Motifnullable
vlanModestringfacultatif
accesstrunktaggedhybridnull
nullable
maximumDrawWnumberfacultatif
≥ 0nullable
allocatedDrawWnumberfacultatif
≥ 0nullable
feedLegstringfacultatif
ABCnull
nullable
powerPortIduuidfacultatif

For power-out (PDU outlet): the asset_port (power-in) it is fed from

nullable
positionsnumberfacultatif
1 – 1024nullable
statusstringfacultatif
ACTIVEDISABLEDPLANNED
Par défaut : "ACTIVE"
templatePortNamestringfacultatif

Matches the port name in the linked asset_template

max. 100 caractèresnullable
notesstringfacultatif
max. 1000 caractèresnullable

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_ports — Liste, paginée et filtrable
  • GET /api/v1/asset_ports/<id> — Une entité
  • POST /api/v1/asset_ports — Créer
  • PATCH /api/v1/asset_ports/<id> — Mise à jour partielle
  • DELETE /api/v1/asset_ports/<id> — Suppression logique
  • GET /api/v1/asset_ports/<id>/timeline — Audit et activités

Recherche