[SOLVED] [pve7] api call agent/exec-status

Nov 1, 2019
5
1
43
www.axians.nl
Hi,

When I do the API call
HTTP:
POST /api2/json/nodes/{node}/qemu/{vmid}/agent/exec

You have to do the API call exec-status to get the result of the exec command.
HTML:
GET /api2/json/nodes/{node}/qemu/{vmid}/agent/exec-status

The first calls works. As a result I get de pid back. But I do not understand the exec-status api call.

In the documentation exec-status it say its needs 3 parameters. But where does de {pid} parameter go ? The GET URL only shows a {node} and {vmid} parameter.

Gr. Robin
 
In the documentation exec-status it say its needs 3 parameters. But where does de {pid} parameter go ? The GET URL only shows a {node} and {vmid} parameter.
Its a normal HTTP get request, so you add the pid as query argument:

Code:
GET /api2/json/nodes/{node}/qemu/{vmid}/agent/exec-status?pid={pid}