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

Nov 1, 2019
5
1
23
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}
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, 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 yours easily in our online shop.

Buy now!