]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/API2/Disks.pm
add return schema to smart API path
[pve-storage.git] / PVE / API2 / Disks.pm
index 3be68735e2d1c8cdfa692f560054433b6f0c1b1f..208485f6ab465b51892f3c7cf10be32ba2af425f 100644 (file)
@@ -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) = @_;