public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-access-control] resource pools: add resource pool cli commands
@ 2021-01-28 11:01 Dylan Whyte
  2021-01-28 11:01 ` [pve-devel] [PATCH pve-docs] resource-pools: add section in docs Dylan Whyte
  2021-01-28 13:19 ` [pve-devel] [PATCH pve-access-control] resource pools: add resource pool cli commands Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Dylan Whyte @ 2021-01-28 11:01 UTC (permalink / raw)
  To: pve-devel

Add commands for creating, modifying, listing, and deleting resource
pools.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
---
 PVE/CLI/pveum.pm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/PVE/CLI/pveum.pm b/PVE/CLI/pveum.pm
index c98ddde..0540b85 100755
--- a/PVE/CLI/pveum.pm
+++ b/PVE/CLI/pveum.pm
@@ -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'] ],
@@ -176,6 +182,10 @@ our $cmddef = {
 
     aclmod => { alias => 'acl modify' },
     acldel => { alias => 'acl delete' },
+
+    pooladd => { alias => 'pool add' },
+    poolmod => { alias => 'pool modify' },
+    pooldel => { alias => 'pool delete' },
 };
 
 1;
-- 
2.20.1





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-28 13:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28 11:01 [pve-devel] [PATCH pve-access-control] resource pools: add resource pool cli commands Dylan Whyte
2021-01-28 11:01 ` [pve-devel] [PATCH pve-docs] resource-pools: add section in docs Dylan Whyte
2021-01-28 13:19 ` [pve-devel] [PATCH pve-access-control] resource pools: add resource pool cli commands Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal