Exploring the Nautobot Go library
Nautobot’s latest companion is an SDK written for GoLang named go-nautobot
. The library is currently in an alpha state as we look to grow its capabilities as the automation community desires the added features. go-nautobot
is a library that is autogenerated from the Nautobot Swagger API and provides a clean integration to Nautobot via a GoLang application. Here are a few examples to get started. As part of the design of the SDK for Go, every iteration of Nautobot will produce a tightly coupled SDK for GoLang. So, when a new release of Nautobot comes out, a corresponding release for go-nautobot
will also be released. The structure of the SDK will be tightly integrated with the Swagger API definition for the release so if something changes in the Nautobot API, the Go library will read in these changes.
Let’s start by creating a new Go script in a file called main.go
. The script will query Nautobot for manufacturers and simply print the...