Description
pynetbox version
v7.4.0
NetBox version
v4.3.1
Feature type
New functionality
Proposed functionality
Hi,
I have implemented the ability to trigger a render-config for virtual machines by adding the render_config method to the virtualization model, mirroring the existing functionality for devices from the dcim model.
This feature behaves in the same manner as rendering a config for a device, returning a DetailEndpoint object. Use is similar to that of the device render_config:
vm = nb.virtualization.virtual_machines.get(123)
vm.render_config.create()
I've run into many instances where this feature would be valuable, and I believe it would be beneficial for other users as well.
Would you be interested in merging this feature upstream?
Use case
This feature exposes the existing NetBox API /api/virtualization/virtual-machines/{id}/render-config/ endpoint in pynetbox allowing for the rendering of configurations for virtual machines.
External dependencies
None