Skip to content

Conversation

@arthanson
Copy link
Collaborator

@arthanson arthanson commented Jan 7, 2026

Fixes: #728

  • Added support for v2 tokens.
  • Added tests for the tokens
  • Cleaned up some ruff check issues.

Simple script to test - update the token:

import pynetbox

nb = pynetbox.api(
    "http://127.0.0.1:8000/",
    token="nbt_jmEaR2a9bQGn.c9ikyDRw46SMH8JeUrBURGKDuNw8imW15nGkFxoE",
    threading=True,
)


sites = nb.dcim.sites.all()
for site in sites:
    print(site)

@arthanson arthanson marked this pull request as ready for review January 7, 2026 22:12
@arthanson arthanson changed the title DRAFT: Add support for v2 tokens introduced in NetBox 4.5.0 Add support for v2 tokens introduced in NetBox 4.5.0 Jan 7, 2026
@arthanson arthanson requested review from a team and jnovinger and removed request for a team January 7, 2026 22:12
@jnovinger jnovinger merged commit 78d4903 into master Jan 9, 2026
9 checks passed
@jnovinger jnovinger deleted the 728-api-tokens branch January 9, 2026 15:59
@arthanson arthanson modified the milestone: 7.6.0 Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for v2 tokens introduced in NetBox 4.5.0

3 participants