From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id E8ABA1FF0C0 for ; Wed, 30 Sep 2026 16:52:10 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 54969216AE; Wed, 30 Sep 2026 16:51:55 +0200 (CEST) From: Elias Huhsovitz To: pve-devel@lists.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 Message-ID: <20260930145143.210066-3-e.huhsovitz@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260930145143.210066-1-e.huhsovitz@proxmox.com> References: <20260930145143.210066-1-e.huhsovitz@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1790779910207 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.577 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: FRJ65L5GUMQ6ZSJDLSKCUZBDW7FCAOZB X-Message-ID-Hash: FRJ65L5GUMQ6ZSJDLSKCUZBDW7FCAOZB X-MailFrom: e.huhsovitz@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Elias Huhsovitz X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Elias Huhsovitz --- 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