From 98022975176ea1611b6da38f12d0762714e4bfd3 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 17 Jan 2023 12:46:58 +0100 Subject: [PATCH] api: add realm-sync crud api to /cluster/jobs Signed-off-by: Dominik Csapak [ T: fix-up realm sync module namespace, moved to PVE::API2::Jobs ] Signed-off-by: Thomas Lamprecht --- PVE/API2/Cluster/Jobs.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PVE/API2/Cluster/Jobs.pm b/PVE/API2/Cluster/Jobs.pm index 8166333d..56b40fa2 100644 --- a/PVE/API2/Cluster/Jobs.pm +++ b/PVE/API2/Cluster/Jobs.pm @@ -6,8 +6,15 @@ use warnings; use PVE::RESTHandler; use PVE::CalendarEvent; +use PVE::API2::Jobs::RealmSync; + use base qw(PVE::RESTHandler); +__PACKAGE__->register_method ({ + subclass => "PVE::API2::Jobs::RealmSync", + path => 'realm-sync', +}); + __PACKAGE__->register_method({ name => 'index', path => '', @@ -35,6 +42,7 @@ __PACKAGE__->register_method({ code => sub { return [ { subdir => 'schedule-analyze' }, + { subdir => 'realm-sync' }, ]; }});