]> git.proxmox.com Git - pve-container.git/commitdiff
vmlist: document return properties
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 31 Jul 2018 11:51:55 +0000 (13:51 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 1 Aug 2018 08:03:42 +0000 (10:03 +0200)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
src/PVE/API2/LXC.pm

index 55e631049ec2b686375e2aaf18823a70529e42a8..b65143e4a1cd195f070d69a1ce4b01cb5d506af0 100644 (file)
@@ -74,7 +74,48 @@ __PACKAGE__->register_method({
        type => 'array',
        items => {
            type => "object",
-           properties => {},
+           properties => {
+               vmid => get_standard_option('pve-vmid'),
+               status => {
+                   description => "LXC Container status.",
+                   type => 'string',
+                   enum => ['stopped', 'running'],
+               },
+               maxmem => {
+                   description => "Maximum memory in bytes.",
+                   type => 'integer',
+                   optional => 1,
+                   renderer => 'bytes',
+               },
+               maxswap => {
+                   description => "Maximum SWAP memory in bytes.",
+                   type => 'integer',
+                   optional => 1,
+                   renderer => 'bytes',
+               },
+               maxdisk => {
+                   description => "Root disk size in bytes.",
+                   type => 'integer',
+                   optional => 1,
+                   renderer => 'bytes',
+               },
+               name => {
+                   description => "Container name.",
+                   type => 'string',
+                   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}" } ],
     },