[pve-devel] [PATCH manager v2 12/13] api2: capabilities: expose new qemu/migration endpoint
Christoph Heiss
c.heiss at proxmox.com
Thu Apr 24 13:19:32 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
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.49.0
More information about the pve-devel
mailing list