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

Christoph Heiss c.heiss at proxmox.com
Thu Jul 3 13:54:14 CEST 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>
---
Changes v1 -> v2:
  * no changes

Changes v2 -> v3:
  * updated to new module path

 PVE/API2/Capabilities.pm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/Capabilities.pm b/PVE/API2/Capabilities.pm
index 62c3016df..d45c548e1 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::NodeCapabilities::Qemu::Migration;
 
 use base qw(PVE::RESTHandler);
 
@@ -21,6 +22,11 @@ __PACKAGE__->register_method({
     path => 'qemu/machines',
 });
 
+__PACKAGE__->register_method({
+    subclass => 'PVE::API2::NodeCapabilities::Qemu::Migration',
+    path => 'qemu/migration',
+});
+
 __PACKAGE__->register_method({
     name => 'index',
     path => '',
@@ -78,7 +84,7 @@ __PACKAGE__->register_method({
         my ($param) = @_;
 
         my $result = [
-            { name => 'cpu' }, { name => 'machines' },
+            { name => 'cpu' }, { name => 'machines' }, { name => 'migration' },
         ];
 
         return $result;
-- 
2.49.0





More information about the pve-devel mailing list