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' }, ]; }});