[pve-devel] [RFC pve-manager master v1 09/12] api: handle path 'plugins/storage' through its package

Max R. Carrara m.carrara at proxmox.com
Mon Sep 8 20:00:53 CEST 2025


... so that all the previously added API paths can actually be called.

Signed-off-by: Max R. Carrara <m.carrara at proxmox.com>
---
 PVE/API2.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/PVE/API2.pm b/PVE/API2.pm
index 0c7e4654..daa78f28 100644
--- a/PVE/API2.pm
+++ b/PVE/API2.pm
@@ -17,6 +17,7 @@ use PVE::API2::Nodes;
 use PVE::API2::Pool;
 use PVE::API2::AccessControl;
 use PVE::API2::Storage::Config;
+use PVE::API2::Plugins::Storage::Config;
 
 __PACKAGE__->register_method({
     subclass => "PVE::API2::Cluster",
@@ -43,6 +44,11 @@ __PACKAGE__->register_method({
     path => 'pools',
 });
 
+__PACKAGE__->register_method({
+    subclass => "PVE::API2::Plugins::Storage::Config",
+    path => 'plugins/storage',
+});
+
 __PACKAGE__->register_method({
     name => 'index',
     path => '',
-- 
2.47.2





More information about the pve-devel mailing list