From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH qemu-server] api: agent: add some newer guest agent commands
Date: Tue, 14 Jul 2026 16:27:37 +0200 [thread overview]
Message-ID: <20260714142834.1038327-1-d.csapak@proxmox.com> (raw)
These are available via the guest agent on a current debian trixie
system. Expose them on our api too, since some users might find them
useful.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
AFAIK no user requested these, and we don't need them ourselves
currently, I just noticed they were available and thought it would be
cheap to add them.
src/PVE/API2/Qemu/Agent.pm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/PVE/API2/Qemu/Agent.pm b/src/PVE/API2/Qemu/Agent.pm
index a4234968..22d1ab7b 100644
--- a/src/PVE/API2/Qemu/Agent.pm
+++ b/src/PVE/API2/Qemu/Agent.pm
@@ -27,6 +27,18 @@ my $guest_agent_commands = {
method => 'POST',
perms => 'VM.GuestAgent.Audit',
},
+ 'get-load' => {
+ method => 'GET',
+ perms => 'VM.GuestAgent.Audit',
+ },
+ 'get-cpustats' => {
+ method => 'GET',
+ perms => 'VM.GuestAgent.Audit',
+ },
+ 'get-diskstats' => {
+ method => 'GET',
+ perms => 'VM.GuestAgent.Audit',
+ },
'get-time' => {
method => 'GET',
perms => 'VM.GuestAgent.Audit',
@@ -74,6 +86,10 @@ my $guest_agent_commands = {
method => 'GET',
perms => 'VM.GuestAgent.Audit',
},
+ 'get-disks' => {
+ method => 'GET',
+ perms => 'VM.GuestAgent.Audit',
+ },
'get-memory-blocks' => {
method => 'GET',
perms => 'VM.GuestAgent.Audit',
--
2.47.3
reply other threads:[~2026-07-14 14:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260714142834.1038327-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox