From: Dominik Csapak Date: Fri, 9 Jul 2021 14:09:29 +0000 (+0200) Subject: API: Tasks: add more fields to return schema X-Git-Url: https://git.proxmox.com/?p=pve-manager.git;a=commitdiff_plain;h=93a9c349b519eda4cd576fcb238fdcefa6f3fe58 API: Tasks: add more fields to return schema so that they are documented and get displayed by pvesh/pvenode all those fields must exists (since they come from the upid) aside from the exitstatus, so marking that as optional forum user reported that they are missing: https://forum.proxmox.com/threads/ergebnis-eines-tasks-per-api-abfragen.92267/ Signed-off-by: Dominik Csapak (cherry picked from commit 9777a9c4ae69b2f799c132bbc4086214d01b6ce8) Signed-off-by: Thomas Lamprecht --- diff --git a/PVE/API2/Tasks.pm b/PVE/API2/Tasks.pm index 8f6ab603..29da1005 100644 --- a/PVE/API2/Tasks.pm +++ b/PVE/API2/Tasks.pm @@ -375,6 +375,28 @@ __PACKAGE__->register_method({ status => { type => 'string', enum => ['running', 'stopped'], }, + type => { + type => 'string', + }, + id => { + type => 'string', + }, + user => { + type => 'string', + }, + exitstatus => { + type => 'string', + optional => 1, + }, + upid => { + type => 'string', + }, + starttime => { + type => 'number', + }, + node => { + type => 'string', + }, }, }, code => sub {