From: Elias Huhsovitz <e.huhsovitz@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Elias Huhsovitz <e.huhsovitz@proxmox.com>
Subject: [PATCH manager 2/2] api: pool: update delete enpoint description to match behaviour
Date: Wed, 30 Sep 2026 16:51:43 +0200 [thread overview]
Message-ID: <20260930145143.210066-3-e.huhsovitz@proxmox.com> (raw)
In-Reply-To: <20260930145143.210066-1-e.huhsovitz@proxmox.com>
Signed-off-by: Elias Huhsovitz <e.huhsovitz@proxmox.com>
---
PVE/API2/Pool.pm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/PVE/API2/Pool.pm b/PVE/API2/Pool.pm
index a0ff8a31..2cb10fb1 100644
--- a/PVE/API2/Pool.pm
+++ b/PVE/API2/Pool.pm
@@ -494,10 +494,11 @@ __PACKAGE__->register_method({
path => '',
method => 'DELETE',
permissions => {
- description => "You can only delete empty pools (no members).",
+ description => "Requires 'Pool.Allocate' on '/pool/{poolid}'.",
check => ['perm', '/pool/{poolid}', ['Pool.Allocate']],
},
- description => "Delete pool.",
+ description => "Delete pool. A pool can only be deleted if it is empty "
+ . "(no sub-pools, VMs, or storage) and is not referenced by any backup job.",
parameters => {
additionalProperties => 0,
properties => {
--
2.47.3
prev parent reply other threads:[~2026-09-30 14:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 14:51 [PATCH manager 0/2] fix #7860: api: pool: do not delete when used by backup job Elias Huhsovitz
2026-09-30 14:51 ` [PATCH manager 1/2] " Elias Huhsovitz
2026-09-30 14:51 ` Elias Huhsovitz [this message]
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=20260930145143.210066-3-e.huhsovitz@proxmox.com \
--to=e.huhsovitz@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.