public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH qemu-server] api: agent: add some newer guest agent commands
@ 2026-07-14 14:27 Dominik Csapak
  0 siblings, 0 replies; only message in thread
From: Dominik Csapak @ 2026-07-14 14:27 UTC (permalink / raw)
  To: pve-devel

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





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-14 14:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-14 14:27 [PATCH qemu-server] api: agent: add some newer guest agent commands Dominik Csapak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal