]> git.proxmox.com Git - pve-access-control.git/commitdiff
add realm commands to pveum
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 6 Mar 2020 10:05:38 +0000 (11:05 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 7 Mar 2020 18:50:22 +0000 (19:50 +0100)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/CLI/pveum.pm

index 9cae7745daffde19d06f058b624d481c4e7c380a..d3721b610db7acfda163d4a0826d6a6a6a4323e2 100755 (executable)
@@ -10,6 +10,7 @@ use PVE::API2::Group;
 use PVE::API2::Role;
 use PVE::API2::ACL;
 use PVE::API2::AccessControl;
 use PVE::API2::Role;
 use PVE::API2::ACL;
 use PVE::API2::AccessControl;
+use PVE::API2::Domains;
 use PVE::CLIFormatter;
 use PVE::CLIHandler;
 use PVE::JSONSchema qw(get_standard_option);
 use PVE::CLIFormatter;
 use PVE::CLIHandler;
 use PVE::JSONSchema qw(get_standard_option);
@@ -141,6 +142,14 @@ our $cmddef = {
        delete => [ 'PVE::API2::ACL', 'update_acl', ['path'], { delete => 1 }],
        list   => [ 'PVE::API2::ACL', 'read_acl', [], {}, $print_api_result, $PVE::RESTHandler::standard_output_options],
     },
        delete => [ 'PVE::API2::ACL', 'update_acl', ['path'], { delete => 1 }],
        list   => [ 'PVE::API2::ACL', 'read_acl', [], {}, $print_api_result, $PVE::RESTHandler::standard_output_options],
     },
+
+    realm => {
+       add    => [ 'PVE::API2::Domains', 'create', ['realm'] ],
+       modify => [ 'PVE::API2::Domains', 'update', ['realm'] ],
+       delete => [ 'PVE::API2::Domains', 'delete', ['realm'] ],
+       list   => [ 'PVE::API2::Domains', 'index', [], {}, $print_api_result, $PVE::RESTHandler::standard_output_options],
+    },
+
     ticket => [ 'PVE::API2::AccessControl', 'create_ticket', ['username'], undef,
                sub {
                    my ($res) = @_;
     ticket => [ 'PVE::API2::AccessControl', 'create_ticket', ['username'], undef,
                sub {
                    my ($res) = @_;