[pve-devel] [PATCH qemu-server 6/7] change some guest agent commands to GET api calls

Dominik Csapak d.csapak at proxmox.com
Tue Feb 13 16:47:12 CET 2018


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2/Qemu/Agent.pm | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/Qemu/Agent.pm b/PVE/API2/Qemu/Agent.pm
index 2743595..24b44a9 100644
--- a/PVE/API2/Qemu/Agent.pm
+++ b/PVE/API2/Qemu/Agent.pm
@@ -35,7 +35,29 @@ my $guest_agent_commands = [
 # 'method': e.g. GET/POST
 # 'perms': either a string like 'VM.Montior' or an array of such strings
 #	   or a permission object
-my $ga_cmd_properties =  {};
+my $ga_cmd_properties =  {
+    'network-get-interfaces' => {
+	method => 'GET',
+    },
+    'get-vcpus' => {
+	method => 'GET',
+    },
+    'get-fsinfo' => {
+	method => 'GET',
+    },
+    'get-memory-blocks' => {
+	method => 'GET',
+    },
+    'get-memory-block-info' => {
+	method => 'GET',
+    },
+    'get-time' => {
+	method => 'GET',
+    },
+    'info' => {
+	method => 'GET',
+    },
+};
 
 __PACKAGE__->register_method({
     name => 'index',
-- 
2.11.0





More information about the pve-devel mailing list