IpamPrefixesAvailableIpsCreate API throws 'json: cannot unmarshal object into Go value of type []*models.IPAddress' error #202
-
Hi, Below is my sample code. // Set up NetBox API client client := netbox.NewNetboxWithAPIKey(netboxURL, apiToken) // Step 1: Find the Prefix ID dynamically // Step 2: Allocate an Available IP from the Prefix Though the IP address has been created in the netbox, verified via GUI, this API is throwing an error as below. Is there something wrong in the code above? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, I'm not seeing this error on You can see my code here: disc_202_test.go Maybe my approach is wrong but a few questions for you:
|
Beta Was this translation helpful? Give feedback.
Hey,
I'm not seeing this error on
v4.2.2-2
.You can see my code here: disc_202_test.go
Maybe my approach is wrong but a few questions for you: