From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 4144D1FF0E4 for ; Tue, 14 Jul 2026 16:29:09 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 0CE8A213EA; Tue, 14 Jul 2026 16:29:09 +0200 (CEST) From: Dominik Csapak 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 Message-ID: <20260714142834.1038327-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.345 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: V2VIIM5I5KBHMRDE3IWUVEUE2U75KCP5 X-Message-ID-Hash: V2VIIM5I5KBHMRDE3IWUVEUE2U75KCP5 X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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