pynetbox
pynetbox copied to clipboard
Python API client library for Netbox.
### pynetbox version v7.1.0 ### NetBox version v3.4.3 ### Python version 3.9 ### Steps to Reproduce Using an API token that cannot POST on the `/dcim/devices/` endpoint for instance, try...
### Fixes: #591 If the API token is not allowed to POST on a particular endpoint, choices won't be returned in `.actions.POST`, but we can still get them in `.actions.PUT`....
### pynetbox version v7.0.1 ### NetBox version v3.6.1 ### Python version 3.11 ### Steps to Reproduce Consider this simple modifying of a given attribute: ```py >>> import pynetbox >>> nb=pynetbox.api('http://127.0.0.1:8000',...
### Change Type Correction ### Area Other ### Proposed Changes The documentation at https://pynetbox.readthedocs.io/en/latest/ has sections for: * Endpoint * Response * Request * IPAM * Custom Sessions However there...
Requests skips parameters that are None. Map 'null' string to None python type for a more native coding eg: `nb.dcim.interfaces.filter(mac_address__n=None)`
### Fixes: #555 Note: This maybe a breaking change as it changes the nested list from `id` to a `serialized object`
Hi, I am currently looking at upgrading our NetBox instance to the latest version, which means jumping over 3.3 with breaking changes in the Cable model. Thanks @arthanson for the...
### Fixes: #517
In netbox 3.3.x cables support multiple terminations on either end - The corresponding model of e.g. an interface uses `connected_endpoints` now instead of `connected_endpoint` and contains a list of interfaces....
Attempting to attach an image to dcim.device using this sample code: with open("file_file.jpg", "rb") as file_handle: image_data = file_handle.read() base_encoded = base64.b64encode(image_data).decode("utf8") image_data = dict( content_type="dcim.device", object_id=1234, name="Test image", image=base_encoded,...