* [PATCH pve-apiclient 1/1] client: allow passing query parameters to delete calls
@ 2026-08-13 10:51 Stefan Hanreich
2026-08-13 11:13 ` Hannes Laimer
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Hanreich @ 2026-08-13 10:51 UTC (permalink / raw)
To: pve-devel
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH pve-apiclient 1/1] client: allow passing query parameters to delete calls
2026-08-13 10:51 [PATCH pve-apiclient 1/1] client: allow passing query parameters to delete calls Stefan Hanreich
@ 2026-08-13 11:13 ` Hannes Laimer
2026-08-13 11:13 ` Hannes Laimer
0 siblings, 1 reply; 3+ messages in thread
From: Hannes Laimer @ 2026-08-13 11:13 UTC (permalink / raw)
To: Stefan Hanreich, pve-devel
Thought this looked familiar :P
On 2026-08-13 12:52, Stefan Hanreich wrote:
> 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");
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH pve-apiclient 1/1] client: allow passing query parameters to delete calls
2026-08-13 11:13 ` Hannes Laimer
@ 2026-08-13 11:13 ` Hannes Laimer
0 siblings, 0 replies; 3+ messages in thread
From: Hannes Laimer @ 2026-08-13 11:13 UTC (permalink / raw)
To: Stefan Hanreich, pve-devel
On 2026-08-13 13:12, Hannes Laimer wrote:
> Thought this looked familiar :P
>
sorry, forgot to paste the link
https://lore.proxmox.com/pve-devel/20260318132253.177837-1-h.laimer@proxmox.com/
> On 2026-08-13 12:52, Stefan Hanreich wrote:
>> 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");
>
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-13 11:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 10:51 [PATCH pve-apiclient 1/1] client: allow passing query parameters to delete calls Stefan Hanreich
2026-08-13 11:13 ` Hannes Laimer
2026-08-13 11:13 ` Hannes Laimer
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.