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

Asset Port

Schema-ID
asset_port
Collection
asset_ports
Permissions
  • Lesenasset_port_view
  • Anlegenasset_port_create
  • Ändernasset_port_edit
  • Löschenasset_port_delete
Beziehungen

Felder

Asset Port

asset_ports4 Permissions

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

assetIduuiderforderlich→ asset

Asset this port belongs to

namestringerforderlich
1–100 Zeichen
labelstringoptional
max 200 Zeichennullable
categorystringerforderlich
interfaceconsolepower_inpower_outrear
portTypestringerforderlich

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

1–60 Zeichen
sidestringoptional
FRONTREARnull
Default: "FRONT"nullable
positionXnumberoptional
0 – 100nullable
positionYnumberoptional
0 – 100nullable
speedstringoptional
max 40 Zeichennullable
mgmtOnlybooleanoptional
nullable
poeModestringoptional
pdpsenull
nullable
poeTypestringoptional
max 60 Zeichennullable
macAddressstringoptional
Patternnullable
vlanModestringoptional
accesstrunktaggedhybridnull
nullable
maximumDrawWnumberoptional
≥ 0nullable
allocatedDrawWnumberoptional
≥ 0nullable
feedLegstringoptional
ABCnull
nullable
powerPortIduuidoptional

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

nullable
positionsnumberoptional
1 – 1024nullable
statusstringoptional
ACTIVEDISABLEDPLANNED
Default: "ACTIVE"
templatePortNamestringoptional

Matches the port name in the linked asset_template

max 100 Zeichennullable
notesstringoptional
max 1000 Zeichennullable

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_ports — Liste, paginiert + filterbar
  • GET /api/v1/asset_ports/<id> — Einzelne Entity
  • POST /api/v1/asset_ports — Anlegen
  • PATCH /api/v1/asset_ports/<id> — Teil-Update
  • DELETE /api/v1/asset_ports/<id> — Soft-Delete
  • GET /api/v1/asset_ports/<id>/timeline — Audit + Aktivitäten

Suche