Replies: 1 comment 1 reply
-
This is related to the way the filters are named in the rest API. I suppose we could audit all the models and see where we could improve |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example, if I want to create an ip address, I use this:
ip = netbox.ipam.create_ip_address(address = "192.168.1.110/24", tenant = 9, description = "test")
but if I want to check existance of the ip before creation I have to change variable's names like this:
ip = netbox.ipam.get_ip_addresses(address= "192.168.1.110/24", tenant_id = 9, description = "test")
if I want to update this ip, I have to change names again:
ip = netbox.ipam.update_ip(ip_address="192.168.1.110/24", tenant=9, description = "test1")
It looks so inconvenient for me but maybe there is some idea behind it?
Are there any ways to do there operations easier?
Beta Was this translation helpful? Give feedback.
All reactions