]> git.proxmox.com Git - qemu-server.git/commitdiff
vmlist: document 'uptime' and 'cpus' returmn value
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 31 Jul 2018 11:31:49 +0000 (13:31 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 31 Jul 2018 11:31:49 +0000 (13:31 +0200)
PVE/API2/Qemu.pm

index 655f51455e8132f53048fa277d31cca04294ade9..614f23914c9e22a05b4ee0c6b00de751c9b5e148 100644 (file)
@@ -399,6 +399,17 @@ __PACKAGE__->register_method({
                    type => 'integer',
                    optional => 1,
                },
+               uptime => {
+                   description => "Uptime.",
+                   type => 'integer',
+                   optional => 1,
+                   renderer => 'duration',
+               },
+               cpus => {
+                   description => "Maximum usable CPUs.",
+                   type => 'number',
+                   optional => 1,
+               },
            },
        },
        links => [ { rel => 'child', href => "{vmid}" } ],