Pcornel
Automation · NetBox

NetBox Fundamentals

Cheat sheet · https://pcornel.dk/topic.php?topic=5873

Back to the Topic

Answer

NetBox fundamentals: it models what the network should look like — sites, racks, devices, cables, IPs, VLANs and circuits — as the source of truth for documentation and automation.

Remember

  • NetBox models what the network should look like.
  • It covers sites, racks, devices, cables, IPs and circuits.
  • It is the basis for automation.

First checks

  • curl -s -H 'Authorization: Token <t>' https://<netbox>/api/status/ | jq . — status
  • Roles, sites, platforms defined — core data
  • Permissions (object-based) — access

Verify in this order

model → records → API consumers

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5873

Confirmation

Confirm action

Continue?