Skip to content

Acquire Devices Rendered Template #553

Answered by jhofmueller
danner26 asked this question in Q&A
Discussion options

You must be logged in to vote

Here is how it works:

>>> import pynetbox
>>> nb = pynetbox.api(
...     'http://localhost:8000',
...     token='d6f4e314a5b5fefd164995169f28ae32d987704f'
... )
>>> nb.dcim.devices.get(<filter>).render_config.create()

This returns a dictionary containing among other things the key content which is the rendered config.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jhofmueller
Comment options

@jhofmueller
Comment options

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