[pve-devel] [PATCH v3 pve-manager 2/2] Add REST endpoint for /report call

Dietmar Maurer dietmar at proxmox.com
Tue Nov 3 18:18:22 CET 2015


applied with some modifications:

> +    returns => {
> +	type => 'object',
> +    },
> +    code => sub {
> +	return { report => PVE::Report::generate() };
> +    }});

I changed the return type to string:
     
     returns => {
-       type => 'object',
+       type => 'string',
     },
     code => sub {
-       return { report => PVE::Report::generate() };
+       return PVE::Report::generate();
     }});

So you can now also use:

# pvesh get /nodes/localhost/report




More information about the pve-devel mailing list