Pcornel
Automation · NetBox

Custom Fields

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

Back to the Topic

Answer

Custom fields add your own attributes to NetBox objects, such as a support contract or backup policy, which automation can read and write through the API.

Remember

  • Custom fields add your own attributes to NetBox objects.
  • Automation reads and writes them via the API.
  • Choose the right type and validation.

First checks

  • curl -s -H 'Authorization: Token <t>' https://<netbox>/api/extras/custom-fields/ — custom fields
  • Validation rules on custom fields — quality
  • Usage in automation — consumers

Verify in this order

custom field definition → object values → automation

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=5884

Confirmation

Confirm action

Continue?