Open tgoodsell-tempus opened 1 month ago
When running the following function:
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() if err != nil { log.Printf("Num returned: %d", len(prefixList.Results)) log.Printf("HTTP RESP: %v", resp) log.Fatalf("Failed to get prefixes: %v", err) } }
I'm seeing results where:
preflxList
200
err
Netbox version being run: v4.0.3
Based on the value of the response, I gather this is an issue with the parsing of this request, rather than an actual API issue.
When running the following function:
I'm seeing results where:
preflxList
has no results200
return with the expected prefix outputs in the JSON bodyerr
returned is: no value given for required property prefix_countNetbox version being run: v4.0.3
Based on the value of the response, I gather this is an issue with the parsing of this request, rather than an actual API issue.