[PR #14287] [MERGED] Add /api/virtualization/virtual-machines/{id}/render-config/ endpoint #14357

Closed
opened 2025-12-29 23:24:02 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14287
Author: @pkorovin
Created: 11/16/2023
Status: Merged
Merged: 11/17/2023
Merged by: @jeremystretch

Base: featureHead: virtualmachine-render-config


📝 Commits (4)

  • 777b721 Add /api/virtualization/virtual-machines/{id}/render-config/ endpoint
  • 2b49d2b Update Docstring "Device" -> "Virtual Machine"
  • 1859751 Move config rendering logic to new RenderConfigMixin
  • a212725 Add tests for render-config API endpoint

📊 Changes

5 files changed (+73 additions, -26 deletions)

View changed files

📝 netbox/dcim/api/views.py (+2 -22)
📝 netbox/dcim/tests/test_api.py (+17 -0)
📝 netbox/extras/api/mixins.py (+34 -1)
📝 netbox/virtualization/api/views.py (+3 -3)
📝 netbox/virtualization/tests/test_api.py (+17 -0)

📄 Description

Fixes: #13808


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/14287 **Author:** [@pkorovin](https://github.com/pkorovin) **Created:** 11/16/2023 **Status:** ✅ Merged **Merged:** 11/17/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `virtualmachine-render-config` --- ### 📝 Commits (4) - [`777b721`](https://github.com/netbox-community/netbox/commit/777b721ccbc401f26f393b27c859b223425fc7f8) Add /api/virtualization/virtual-machines/{id}/render-config/ endpoint - [`2b49d2b`](https://github.com/netbox-community/netbox/commit/2b49d2ba60794c39e1de3f22db3b6097ea619987) Update Docstring "Device" -> "Virtual Machine" - [`1859751`](https://github.com/netbox-community/netbox/commit/18597510cbe457b80582ffbc5f978e4ac2b6ad51) Move config rendering logic to new RenderConfigMixin - [`a212725`](https://github.com/netbox-community/netbox/commit/a212725d2e6c3d0f240d800823d6247eaa305360) Add tests for render-config API endpoint ### 📊 Changes **5 files changed** (+73 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/views.py` (+2 -22) 📝 `netbox/dcim/tests/test_api.py` (+17 -0) 📝 `netbox/extras/api/mixins.py` (+34 -1) 📝 `netbox/virtualization/api/views.py` (+3 -3) 📝 `netbox/virtualization/tests/test_api.py` (+17 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #13808 <!-- Add /api/virtualization/virtual-machines/{id}/render-config/ endpoint --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:24:02 +01:00
adam closed this issue 2025-12-29 23:24:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14357