[pve-devel] [PATCH manager v3 3/4] api: add realm-sync crud api to /cluster/jobs
Dominik Csapak
d.csapak at proxmox.com
Tue Jan 17 12:46:58 CET 2023
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/API2/Cluster/Jobs.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/PVE/API2/Cluster/Jobs.pm b/PVE/API2/Cluster/Jobs.pm
index 8166333dc..9a59d7f31 100644
--- a/PVE/API2/Cluster/Jobs.pm
+++ b/PVE/API2/Cluster/Jobs.pm
@@ -5,9 +5,15 @@ use warnings;
use PVE::RESTHandler;
use PVE::CalendarEvent;
+use PVE::API2::AccessControl::RealmSync;
use base qw(PVE::RESTHandler);
+__PACKAGE__->register_method ({
+ subclass => "PVE::API2::AccessControl::RealmSync",
+ path => 'realm-sync',
+});
+
__PACKAGE__->register_method({
name => 'index',
path => '',
@@ -35,6 +41,7 @@ __PACKAGE__->register_method({
code => sub {
return [
{ subdir => 'schedule-analyze' },
+ { subdir => 'realm-sync' },
];
}});
--
2.30.2
More information about the pve-devel
mailing list