Closed syncopsta closed 1 year ago
Works here:
>>> netbox.status()["netbox-version"]
'3.3.4'
>>> pynetbox.__version__
'6.6.2'
>>> vm = netbox.virtualization.virtual_machines.create(dict(name="TestVM123", cluster={"name":"Cluster1"}))
>>> vm
TestVM123
>>> print(repr(vm))
TestVM123
>>> vm.save()
False
>>>
Am I doing something wrong?
Probably, my guess is that you have incorrect URL:
InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'
so apparently there is a redirect that messes up the results.
Closing this for cleanup see markkuleinio note above.
Code:
Error:
root@netbox:~# pip3 show pynetbox Name: pynetbox Version: 6.6.2
Netbox version is v3.3.2
Am I doing something wrong?