]> git.proxmox.com Git - pve-storage.git/commitdiff
add return description for zfs detail api call
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 8 Aug 2018 08:20:09 +0000 (10:20 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 8 Aug 2018 10:01:54 +0000 (12:01 +0200)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Disks/ZFS.pm

index 1690768168684eb74df572411f9ae2f4466ab857..3c36ef956741bc0cfd7b82fb7632bc0ab2006c1c 100644 (file)
@@ -141,7 +141,65 @@ __PACKAGE__->register_method ({
        },
     },
     returns => {
-       type => 'object'
+       type => 'object',
+       properties => {
+           name => {
+               type => 'string',
+               description => 'The name of the zpool.',
+           },
+           state => {
+               type => 'string',
+               description => 'The state of the zpool.',
+           },
+           status => {
+               optional => 1,
+               type => 'string',
+               description => 'Information about the state of the zpool.',
+           },
+           action => {
+               optional => 1,
+               type => 'string',
+               description => 'Information about the recommended action to fix the state.',
+           },
+           scan => {
+               type => 'string',
+               description => 'Information about the last/current scrub.',
+           },
+           scan => {
+               type => 'string',
+               description => 'Information about the errors on the zpool.',
+           },
+           children => {
+               type => 'array',
+               description => "The tree of the vdevs. Depending on the configuration of the zpool, they can be nested.",
+               items => {
+                   type => 'object',
+                   properties => {
+                       name => {
+                           type => 'string',
+                           description => 'The name of the vdev.',
+                       },
+                       state => {
+                           type => 'string',
+                           description => 'The state of the vdev.',
+                       },
+                       read => {
+                           type => 'number',
+                       },
+                       write => {
+                           type => 'number',
+                       },
+                       cksum => {
+                           type => 'number',
+                       },
+                       msg => {
+                           type => 'string',
+                           description => 'An optional message about the vdev.'
+                       }
+                   },
+               },
+           },
+       },
     },
     code => sub {
        my ($param) = @_;