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 !
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 !