Skip to content

Fetch rendered device configuration via API/pynetbox #13800

Discussion options

You must be logged in to vote

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:

$ grep -R render.config .
./pynetbox/models/dcim.py:    def render_config(self):
./pynetbox/models/dcim.py:        Represents the ``render-config`` detail endpoint.
./pynetbox/models/dcim.py:        viewing response from the render-config endpoint.
./pynetbox/models/dcim.py:        >>> device.render_config.create()
./pynetbox/models/dcim.py:        return DetailEndpoint(self, "render-config")

(Unfortunately, it seems that the DCIM section isn't rendered in the documentat…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jhofmueller
Comment options

You must be logged in to vote
1 reply
@candlerb
Comment options

Comment options

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

@jhofmueller
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants