[pve-devel] applied [qemu-server] vmlist: document 'uptime' and 'cpus' returmn value
Dietmar Maurer
dietmar at proxmox.com
Tue Jul 31 13:33:26 CEST 2018
Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
PVE/API2/Qemu.pm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index 655f514..614f239 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -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}" } ],
--
2.11.0
More information about the pve-devel
mailing list