[pve-devel] pve2-api question
Michael Rasmussen
mir at datanom.net
Mon Jul 16 08:34:24 CEST 2012
On Mon, 16 Jul 2012 04:12:50 +0000
Dietmar Maurer <dietmar at proxmox.com> wrote:
>
>
> The returned object includes a 'status' property, for example:
>
> {
> "id" : "",
> "node" : "test",
> "pid" : 4752,
> "pstart" : 4557,
> "starttime" : 1341989442,
> "status" : "stopped",
> "type" : "startall",
> "upid" : "UPID:test:00001290:000011CD:4FFD2242:startall::root at pam:",
> "user" : "root at pam"
> }
>
Argh, sorry. I was referring to this API call:
GET /api2/json/nodes/{node}/tasks/{upid}/log
Is it reliable to assume whenever a task finish it will log either:
TASK OK
or
TASK ERROR: some error text
or should I to be absolutely sure make a call
to /api2/json/nodes/{node}/tasks/{upid}/status and continue to do so
until the attribute status reads 'stopped'?
--
Hilsen/Regards
Michael Rasmussen
Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20120716/7678d864/attachment.sig>
More information about the pve-devel
mailing list