From: Stefan Hanreich <s.hanreich@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-apiclient 1/1] client: allow passing query parameters to delete calls
Date: Thu, 13 Aug 2026 12:51:59 +0200 [thread overview]
Message-ID: <20260813105200.139383-1-s.hanreich@proxmox.com> (raw)
Some DELETE endpoints in the PVE API use additional parameters, that
are passed as a query string. The API client did not process any
parameters passed to delete calls, making it impossible to use DELETE
endpoints in the PVE API that rely on additional parameters (e.g. the
DELETE endpoint in the SDN IPAM IP module).
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
src/PVE/APIClient/LWP.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/APIClient/LWP.pm b/src/PVE/APIClient/LWP.pm
index d8472f7..216260a 100755
--- a/src/PVE/APIClient/LWP.pm
+++ b/src/PVE/APIClient/LWP.pm
@@ -332,6 +332,7 @@ sub call {
);
} elsif ($method eq 'DELETE') {
+ $uri->query_form($param);
$response = $ua->request(HTTP::Request::Common::DELETE($uri));
} else {
raise("method $method not implemented\n");
--
2.47.3
next reply other threads:[~2026-08-13 10:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-13 10:51 Stefan Hanreich [this message]
2026-08-13 11:13 ` [PATCH pve-apiclient 1/1] client: allow passing query parameters to delete calls Hannes Laimer
2026-08-13 11:13 ` Hannes Laimer
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=20260813105200.139383-1-s.hanreich@proxmox.com \
--to=s.hanreich@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.