<div dir="ltr"><div><div>thanks, I try got log from api, and have new problem, number of lines from api got only 50.<br></div>In api:<br><br><br>{<br> "n" : 9,<br> "t" : "INFO: started backup task '2f24d203-0be4-4684-82b9-e76e50c7db51'"<br> },<br></div> skip<br><div><div> {<br> "n" : 47,<br> "t" : "INFO: status: 37% (6988955648/18874368000), sparse 15% (2853744640), duration 712, 9/9 MB/s"<br> },<br> {<br> "n" : 48,<br> "t" : "INFO: status: 38% (7176519680/18874368000), sparse 15% (2859991040), duration 731, 9/9 MB/s"<br> },<br> {<br> "n" : 49,<br> "t" : "INFO: status: 39% (7363756032/18874368000), sparse 15% (2864693248), duration 750, 9/9 MB/s"<br> },<br> {<br> "n" : 50,<br> "t" : "INFO: status: 40% (7551451136/18874368000), sparse 15% (2873110528), duration 769, 9/9 MB/s"<br> }<br> ],<br> "total" : 79<br><br><br></div><div>In gui at this moment:<br>INFO: started backup task '2f24d203-0be4-4684-82b9-e76e50c7db51'<br>skip<br>INFO: status: 68% (12840861696/18874368000), sparse 23% (4449501184), duration 1308, 9/1 MB/s<br>INFO: status: 69% (13028032512/18874368000), sparse 24% (4636622848), duration 1327, 9/0 MB/s<br>INFO: status: 70% (13215137792/18874368000), sparse 25% (4774141952), duration 1346, 9/2 MB/s<br>INFO: status: 71% (13402308608/18874368000), sparse 26% (4939022336), duration 1365, 9/1 MB/s<br><br><br><br></div><div>api return only 50 lines, how can I get all lines ruuning task via api?<br><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-27 15:56 GMT+02:00 Thomas Lamprecht <span dir="ltr"><<a href="mailto:t.lamprecht@proxmox.com" target="_blank">t.lamprecht@proxmox.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Use the following API URL to get all task from all nodes with active tasks included:<br>
<br>
/cluster/tasks<br>
<br>
<br>
Tip when working with the api: You can with all get results from the api in the browser nicely formatted with bootstrap, for example if your Proxmox VE IP is 10.10.10.3 use:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="https://10.10.10.3:8006/api2/html/cluster/tasks" rel="noreferrer" target="_blank">https://10.10.10.3:8006/api2/html/cluster/tasks</a><br>
</blockquote>
<br>
To see a quick view from what you get. pvesh is also a handy tool :)<br>
<br>
regards,<br>
Thomas<div><div class="h5"><br>
<br>
On 11/27/2015 01:27 PM, Eduard Ahmatgareev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could you please help me, I can't find how get current running tasks from api?<br>
<br>
I need get all info about current running task and info about connected this task to vmid<br>
<br>
I try run pvesh get /nodes/{node}/tasks , but this query return only completed task.<br>
<br>
<br>
This need to me for manual create backups from api and check dublicates task in query before run.<br>
<br>
</blockquote>
<br>
<br></div></div>
_______________________________________________<br>
pve-devel mailing list<br>
<a href="mailto:pve-devel@pve.proxmox.com" target="_blank">pve-devel@pve.proxmox.com</a><br>
<a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel" rel="noreferrer" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel</a><br>
</blockquote></div><br></div>