pynetbox icon indicating copy to clipboard operation
pynetbox copied to clipboard

Add render-config endpoint to virtualization model

Open mbreezy715 opened this issue 4 months ago • 0 comments

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

mbreezy715 avatar Jun 27 '25 15:06 mbreezy715