[SOLVED] Catching task upid

Thomesc

New Member
Jul 26, 2016
13
0
1
23
Hi there,
I'm currently creating a web interface to create and configure containers automaticly, I'm using this php API https://github.com/CpuID/pve2-api-php-client
I need to create a function that wait the task of creating a container to start it.
To do so I want to access the task status via it's upid with GET /api2/json/nodes/{node}/tasks/{upid}/status or
GET /api2/json/nodes/{node}/tasks/{upid}/log.
My problem is : How do I catch this {upid} ? I can't figure out how to check the status of the task without knowing the upid and on top of that I don't understand how to catch the value of this upid.

Every piece of help is really appreciated !
 

fabian

Proxmox Staff Member
Staff member
Jan 7, 2016
5,025
821
163

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!