[pve-devel] [PATCH manager 1/5] add disk api entry point
Dominik Csapak
d.csapak at proxmox.com
Tue Aug 23 14:49:13 CEST 2016
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/API2/Nodes.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 8487518..fe8fbb5 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -40,6 +40,7 @@ use PVE::API2::VZDump;
use PVE::API2::APT;
use PVE::API2::Ceph;
use PVE::API2::Firewall::Host;
+use PVE::API2::Disks;
use JSON;
use base qw(PVE::RESTHandler);
@@ -95,6 +96,11 @@ __PACKAGE__->register_method ({
});
__PACKAGE__->register_method ({
+ subclass => "PVE::API2::Disks",
+ path => 'disks',
+});
+
+__PACKAGE__->register_method ({
subclass => "PVE::API2::APT",
path => 'apt',
});
@@ -129,6 +135,7 @@ __PACKAGE__->register_method ({
my $result = [
{ name => 'ceph' },
+ { name => 'disks' },
{ name => 'apt' },
{ name => 'version' },
{ name => 'syslog' },
--
2.1.4
More information about the pve-devel
mailing list