Can you POST data to Netbox?

134 views
Skip to first unread message

Jarryd Took

unread,
Oct 2, 2016, 7:52:10 PM10/2/16
to NetBox
Hi All, 

I am aware there is no writeable API for Netbox at the moment, but is it possible to do this manually with the forms we see?

To automate the creation of devices and IP addresses would be a good start for us.

Any opinions would be welcome.

Cheers,

Jeremy Stretch

unread,
Oct 3, 2016, 4:17:50 PM10/3/16
to Jarryd Took, NetBox
It's possible, but not very practical. You'd need to replicate the session cookie for authentication, as well as the CSRF token presented in each exchange.

A more preferable approach would be to utilize Django's built-in ORM from the shell to create or manipulate objects in bulk. I haven't gotten around to documenting any of this yet, unfortunately.

Jeremy

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/48b5cc10-7e55-4faa-b215-20483aa51e04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages