]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
plug new ClusterConfig API at /cluster/config
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 29 Nov 2016 11:07:38 +0000 (12:07 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 29 Nov 2016 11:08:39 +0000 (12:08 +0100)
PVE/API2/Cluster.pm

index 88818e169d5aba8771e7606caf11012d270a3215..b6ccd38d56ea6a68d1d92cb9d1f511667aba8d5a 100644 (file)
@@ -15,6 +15,7 @@ use PVE::API2Tools;
 use PVE::API2::Backup;
 use PVE::API2::HAConfig;
 use PVE::HA::Config;
+use PVE::API2::ClusterConfig;
 use JSON;
 use PVE::RESTHandler;
 use PVE::RPCEnvironment;
@@ -24,6 +25,11 @@ use PVE::API2::Firewall::Cluster;
 
 use base qw(PVE::RESTHandler);
 
+__PACKAGE__->register_method ({
+    subclass => "PVE::API2::ClusterConfig",
+    path => 'config',
+});
+
 __PACKAGE__->register_method ({
     subclass => "PVE::API2::Firewall::Cluster",  
     path => 'firewall',
@@ -82,6 +88,7 @@ __PACKAGE__->register_method ({
            { name => 'status' },
            { name => 'nextid' },
            { name => 'firewall' },
+           { name => 'config' },
            ];
 
        return $result;