[pve-devel] [PATCH manager 10/14] api2: capabilities: proxy index endpoints to respective nodes

Christoph Heiss c.heiss at proxmox.com
Mon Mar 17 15:11:47 CET 2025


Nodes might have different capabilities, depending on their version.
This ensures that always the requested is actually queryied.

Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
 PVE/API2/Capabilities.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/API2/Capabilities.pm b/PVE/API2/Capabilities.pm
index 7e447b7da..95b13d3d9 100644
--- a/PVE/API2/Capabilities.pm
+++ b/PVE/API2/Capabilities.pm
@@ -27,6 +27,7 @@ __PACKAGE__->register_method ({
     path => '',
     method => 'GET',
     permissions => { user => 'all' },
+    proxyto => 'node',
     description => "Node capabilities index.",
     parameters => {
 	additionalProperties => 0,
@@ -59,6 +60,7 @@ __PACKAGE__->register_method ({
     path => 'qemu',
     method => 'GET',
     permissions => { user => 'all' },
+    proxyto => 'node',
     description => "QEMU capabilities index.",
     parameters => {
 	additionalProperties => 0,
-- 
2.48.1





More information about the pve-devel mailing list