Unable to retrieve available IP address from API with ip prefix #13226
Replies: 4 comments
-
HI, I have the same problem, :( I think it's not possible. Maybe we need to ask a feature ? |
Beta Was this translation helpful? Give feedback.
-
You can see the addresses from the Prefix itself, not sure if this is what you want https://netdevbox.me.com/api/ipam/ip-addresses/?parent=10.254.84.0/22 |
Beta Was this translation helpful? Give feedback.
-
APIs are not 1-1 mapping of the UI URL. They may seem similar but the endpoints are maintained separately. I do not have a 3.4.x NetBox handy with my but you should look in the swagger schema to find the relevant API. From NetBox v3.5.6, this is what you need https://demo.netbox.dev/api/schema/swagger-ui/#/ipam/ipam_prefixes_available_ips_list |
Beta Was this translation helpful? Give feedback.
-
Just found out that Swagger is missing the "Token" for the CURL when it presents the command to be used. Swagger presents this as the CURL to be used:
Token should be added in order for the curl command to actually work as expected.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
NetBox version
v3.4.8
Python version
3.8
Steps to Reproduce
Expected Behavior
I would like to get list of used AND available ip adress
Observed Behavior
An error message is display: The requested page does not exist.
Beta Was this translation helpful? Give feedback.
All reactions