Replies: 1 comment 3 replies
-
OK, I have at least found this to workaround the SSL problems for now until I figure out how to use self-signed certs. Use the nb.http_session.verify = False to stop SSL checking when querying netbox. |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
Hello all, trying to go through the Network to code course with Jeremy, I am having trouble with the first "lab" in that with pynetbox within Jupyter Notebooks. I have setup Netbox to use HTTPS and installed certificate etc (from read the docs) The lab calls for API HTTP calls but my system will not allow that over HTTPS and throws an error. I would of thought in a production environment that HTTPS would be wise (I am using a lab but learning this for prod network) Anyhow, do I turn off HTTPS or is there some other way to connect to Netbox API to create objects? Sample code below.
import pynetbox
nb = pynetbox.api(
'http://192.168.189.164/',
token='13bdb0c38d660fe4bfdca8a6a6e3aa867222ff7f')
chs = nb.dcim.sites.create(
name='Charleston',
slug='chs'
)
Here is one of the errors:
The requested url: http://192.168.189.164/api/dcim/sites/ could not be found
So essentially I cannot get to my site via HTTP, how do I fix this or do I want to given my point above about using HTTPS, if so, how can I run the code above over HTTPS as it fails also. Thanks - Geoff
Beta Was this translation helpful? Give feedback.
All reactions