[pve-devel] [PATCH v2 storage 4/5] add return schema to smart API path

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Oct 3 13:53:36 CEST 2016


---
 PVE/API2/Disks.pm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/Disks.pm b/PVE/API2/Disks.pm
index 3be6873..208485f 100644
--- a/PVE/API2/Disks.pm
+++ b/PVE/API2/Disks.pm
@@ -124,7 +124,15 @@ __PACKAGE__->register_method ({
 	    },
 	},
     },
-    returns => { type => 'object' },
+    returns => {
+	type => 'object',
+	properties => {
+	    health => { type => 'string' },
+	    type => { type => 'string', optional => 1 },
+	    attributes => { type => 'array', optional => 1},
+	    text => { type => 'string', optional => 1 },
+	},
+    },
     code => sub {
 	my ($param) = @_;
 
-- 
2.1.4





More information about the pve-devel mailing list