From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH manager] API: Tasks: add more fields to return schema
Date: Fri, 9 Jul 2021 16:09:29 +0200 [thread overview]
Message-ID: <20210709140929.2314840-1-d.csapak@proxmox.com> (raw)
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 <d.csapak@proxmox.com>
---
PVE/API2/Tasks.pm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/PVE/API2/Tasks.pm b/PVE/API2/Tasks.pm
index 085f9b95..056b698b 100644
--- a/PVE/API2/Tasks.pm
+++ b/PVE/API2/Tasks.pm
@@ -418,6 +418,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 {
--
2.30.2
next reply other threads:[~2021-07-09 14:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-09 14:09 Dominik Csapak [this message]
2021-07-13 4:36 ` [pve-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210709140929.2314840-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox