public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dylan Whyte <d.whyte@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH v2 pve-access-control] resource pools: add resource pool cli commands
Date: Fri, 29 Jan 2021 08:54:39 +0100	[thread overview]
Message-ID: <20210129075440.31248-1-d.whyte@proxmox.com> (raw)

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

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
---
v1->v2: remove command aliases

 PVE/CLI/pveum.pm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/PVE/CLI/pveum.pm b/PVE/CLI/pveum.pm
index c98ddde..cbbdb7d 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'] ],
-- 
2.20.1





             reply	other threads:[~2021-01-29  7:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-29  7:54 Dylan Whyte [this message]
2021-01-29  7:54 ` [pve-devel] [PATCH v2 pve-docs] resource-pools: add section in docs Dylan Whyte
2021-04-24 17:52   ` [pve-devel] applied: " Thomas Lamprecht
2021-04-22 19:53 ` [pve-devel] applied: [PATCH v2 pve-access-control] resource pools: add resource pool cli commands Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210129075440.31248-1-d.whyte@proxmox.com \
    --to=d.whyte@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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