[SOLVED] /agent/exec-status - pid: property is missing and it is not optional

MisterDeeds

Active Member
Nov 11, 2021
127
25
33
34
Dear all

I am trying to query the guest agent status of a VM via API. Unfortunately I get the following message. I am not very familiar in using the Api. How can I query the PID? Could someone help me further?

Code:
root@Pve01:~# pvesh get /nodes/Pve01/qemu/200/agent/exec-status --output-format json
400 Parameter verification failed.
pid: property is missing and it is not optional
pvesh get <api_path> --pid <integer> [OPTIONS] [FORMAT_OPTIONS]
root@Pve01:~#

Thanks and BR
 

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!