[pve-devel] pve2-api question

Dietmar Maurer dietmar at proxmox.com
Mon Jul 16 06:12:50 CEST 2012


> I enclose this call inside a while loop which terminates whenever status sends
> back a 'TASK OK'. This works very well but what if the job fails? Will it then
> always send back a 'TASK ERROR'?


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"
}

- Dietmar




More information about the pve-devel mailing list