mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 03:10:11 +00:00
api: add realm-sync crud api to /cluster/jobs
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> [ T: fix-up realm sync module namespace, moved to PVE::API2::Jobs ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
23d641254d
commit
9802297517
@ -6,8 +6,15 @@ use warnings;
|
|||||||
use PVE::RESTHandler;
|
use PVE::RESTHandler;
|
||||||
use PVE::CalendarEvent;
|
use PVE::CalendarEvent;
|
||||||
|
|
||||||
|
use PVE::API2::Jobs::RealmSync;
|
||||||
|
|
||||||
use base qw(PVE::RESTHandler);
|
use base qw(PVE::RESTHandler);
|
||||||
|
|
||||||
|
__PACKAGE__->register_method ({
|
||||||
|
subclass => "PVE::API2::Jobs::RealmSync",
|
||||||
|
path => 'realm-sync',
|
||||||
|
});
|
||||||
|
|
||||||
__PACKAGE__->register_method({
|
__PACKAGE__->register_method({
|
||||||
name => 'index',
|
name => 'index',
|
||||||
path => '',
|
path => '',
|
||||||
@ -35,6 +42,7 @@ __PACKAGE__->register_method({
|
|||||||
code => sub {
|
code => sub {
|
||||||
return [
|
return [
|
||||||
{ subdir => 'schedule-analyze' },
|
{ subdir => 'schedule-analyze' },
|
||||||
|
{ subdir => 'realm-sync' },
|
||||||
];
|
];
|
||||||
}});
|
}});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user