go-netbox
go-netbox copied to clipboard
The official Go API client for Netbox IPAM and DCIM service.
When running the following function: ```go package main import ( "context" "log" "os" "github.com/netbox-community/go-netbox/v4" ) func main() { ctx := context.Background() client := netbox.NewAPIClientFor("https://netbox.zro.gcp.tempus.cloud", os.Getenv("NETBOX_API_TOKEN")) prefixList, resp, err := client.IpamAPI.IpamPrefixesList(ctx).Execute()...
Hello, I'm trying to use go-netbox v3.4.5-1 DCIM function DcimDevicesList (https://github.com/netbox-community/go-netbox/blob/v3.4.5-1/netbox/client/dcim/dcim_client.go#L4542). I obtain an object with the first 50 devices and would like to access the next page. What is...
I was just trying to make it work. ``` package main import ( "context" "log" "github.com/netbox-community/go-netbox/v4" ) func main() { ctx := context.Background() c := netbox.NewAPIClientFor("https://netbox.demo.com", "88x7agsxxyxuhbx8iyg") res, _, err...
I am trying to call the endpoint /api/ipam/prefixes/ like ``` ctx, cancel := context.WithTimeout(context.Background(), longRequestTimeout) defer cancel() // we get all prefixes where the CIDR of this server is contained...
Hello, I'm trying to create a child prefix under a container with IpamPrefixAvailablePrefixesCreate. My PrefixRequest contains the following properties: AdditionalProperties (prefix_length), Description and a CustomField, named Location. When I'm executing...