Fetch rendered device configuration via API/pynetbox #13800
-
Hi! We want to uses the configuration rendering feature that's available now. However I cannot find any hint on how to retrieve the config for a device using the API or (preferably) pynetbox. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Via the REST API documentation: https://demo.netbox.dev/api/schema/swagger-ui/ (or equivalent link on your own Netbox server) you should find: Looking in the source of pynetbox:
(Unfortunately, it seems that the DCIM section isn't rendered in the documentation at https://pynetbox.readthedocs.io/ - only IPAM) |
Beta Was this translation helpful? Give feedback.
-
I must be getting old. Somehow I lost the trailing backslash when testing the API call using curl. That obviously doesn't work and I thought something is broken/missing. Sorry for the noise and thanks for your patience 😎 |
Beta Was this translation helpful? Give feedback.
-
It seems that not only is the pynetbox documentation not rendered but also the functionality of |
Beta Was this translation helpful? Give feedback.
Via the REST API documentation: https://demo.netbox.dev/api/schema/swagger-ui/ (or equivalent link on your own Netbox server)
you should find:
POST /api/dcim/devices/{id}/render-config/
Looking in the source of pynetbox:
(Unfortunately, it seems that the DCIM section isn't rendered in the documentat…