Skip to content
Discussion options

You must be logged in to vote

Hi,

Waow many thanks for looking into it.

So it gives me a 403 error, so that means that the API is using a token from a disabled used ? It's possible because the guy who did this as left and his AD account has been deleted

In the Netbox.py i can see this at the top :

base_url = 'https://netbox_url/api/'
headers = {"Content-Type": "application/json", "Accept": "application/json"}
requests.packages.urllib3.disable_warnings()
headers['Authorization'] = 'Token b76c1bae6d2xxxxxxxxxxe8b4e6cd8d90a4e6'

So i need to replace this token ? I hope i'm following you guys.

Edit : I have generate a new token with an active user, update the header but i'm still getting 403

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@kkthxbye-code
Comment options

@candlerb
Comment options

@kkthxbye-code
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@candlerb
Comment options

@candlerb
Comment options

@Sandrus
Comment options

@candlerb
Comment options

@Sandrus
Comment options

Answer selected by Sandrus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants