mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 20:15:55 +00:00
plug new ClusterConfig API at /cluster/config
This commit is contained in:
parent
2b9e88286e
commit
ac04fb558b
@ -15,6 +15,7 @@ use PVE::API2Tools;
|
|||||||
use PVE::API2::Backup;
|
use PVE::API2::Backup;
|
||||||
use PVE::API2::HAConfig;
|
use PVE::API2::HAConfig;
|
||||||
use PVE::HA::Config;
|
use PVE::HA::Config;
|
||||||
|
use PVE::API2::ClusterConfig;
|
||||||
use JSON;
|
use JSON;
|
||||||
use PVE::RESTHandler;
|
use PVE::RESTHandler;
|
||||||
use PVE::RPCEnvironment;
|
use PVE::RPCEnvironment;
|
||||||
@ -24,6 +25,11 @@ use PVE::API2::Firewall::Cluster;
|
|||||||
|
|
||||||
use base qw(PVE::RESTHandler);
|
use base qw(PVE::RESTHandler);
|
||||||
|
|
||||||
|
__PACKAGE__->register_method ({
|
||||||
|
subclass => "PVE::API2::ClusterConfig",
|
||||||
|
path => 'config',
|
||||||
|
});
|
||||||
|
|
||||||
__PACKAGE__->register_method ({
|
__PACKAGE__->register_method ({
|
||||||
subclass => "PVE::API2::Firewall::Cluster",
|
subclass => "PVE::API2::Firewall::Cluster",
|
||||||
path => 'firewall',
|
path => 'firewall',
|
||||||
@ -82,6 +88,7 @@ __PACKAGE__->register_method ({
|
|||||||
{ name => 'status' },
|
{ name => 'status' },
|
||||||
{ name => 'nextid' },
|
{ name => 'nextid' },
|
||||||
{ name => 'firewall' },
|
{ name => 'firewall' },
|
||||||
|
{ name => 'config' },
|
||||||
];
|
];
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
Reference in New Issue
Block a user