[pve-devel] [PATCH manager 11/14] api2: capabilities: expose new qemu/migration endpoint

Christoph Heiss c.heiss at proxmox.com
Mon Mar 17 15:11:48 CET 2025


This endpoint provides information about migration capabilities of the
node. Currently, only support for dbus-vmstate is indicated.

Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
Depends on patch #6 to qemu-server & appropriate dependency bump.

 PVE/API2/Capabilities.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/PVE/API2/Capabilities.pm b/PVE/API2/Capabilities.pm
index 95b13d3d9..469e23264 100644
--- a/PVE/API2/Capabilities.pm
+++ b/PVE/API2/Capabilities.pm
@@ -8,6 +8,7 @@ use PVE::RESTHandler;
 
 use PVE::API2::Qemu::CPU;
 use PVE::API2::Qemu::Machine;
+use PVE::API2::Qemu::Migration;
 
 use base qw(PVE::RESTHandler);
 
@@ -21,6 +22,10 @@ __PACKAGE__->register_method ({
     path => 'qemu/machines',
 });
 
+__PACKAGE__->register_method ({
+    subclass => 'PVE::API2::Qemu::Migration',
+    path => 'qemu/migration',
+});
 
 __PACKAGE__->register_method ({
     name => 'index',
@@ -82,6 +87,7 @@ __PACKAGE__->register_method ({
 	my $result = [
 	    { name => 'cpu' },
 	    { name => 'machines' },
+	    { name => 'migration' },
 	];
 
 	return $result;
-- 
2.48.1





More information about the pve-devel mailing list