]> git.proxmox.com Git - pve-access-control.git/commitdiff
resource pools: add resource pool cli commands
authorDylan Whyte <d.whyte@proxmox.com>
Fri, 29 Jan 2021 07:54:39 +0000 (08:54 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Apr 2021 19:53:09 +0000 (21:53 +0200)
Add commands for creating, modifying, listing, and deleting resource
pools.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
PVE/CLI/pveum.pm

index c98dddecd77d3158f6f23b30eb3eb97c90cf10d1..cbbdb7db2509f95a88beba80db697762966c5ff8 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::Pool;
 use PVE::API2::Domains;
 use PVE::CLIFormatter;
 use PVE::CLIHandler;
@@ -145,7 +146,12 @@ 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],
     },
-
+    pool => {
+       add => [ 'PVE::API2::Pool', 'create_pool', ['poolid'] ],
+       modify => [ 'PVE::API2::Pool', 'update_pool', ['poolid'] ],
+       delete => [ 'PVE::API2::Pool', 'delete_pool', ['poolid'] ],
+       list   => [ 'PVE::API2::Pool', 'index', [], {}, $print_api_result, $PVE::RESTHandler::standard_output_options],
+    },
     realm => {
        add    => [ 'PVE::API2::Domains', 'create', ['realm'] ],
        modify => [ 'PVE::API2::Domains', 'update', ['realm'] ],