mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[GH-ISSUE #467] Bug: ConfigSDNZone.mapToApiValues seems broken #120
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NemoDacremont on GitHub (Oct 4, 2025).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/467
I've been playing around with the terraform-provider-proxmox, and tried to add new Simple SDN Zone by using this SDK, however, I faced a problem : when trying to create the zone, the API responds with a status code 400.
After a little bit of digging, I figured out that according to the proxomx v8 api documentation and v7 api documentation, values are posted as json in the request body, and the only required fields are "type" and "zone" in the case of simple SDN.
However, these fields are removed when making the request (
proxmox/config__sdn__zone.go:144) :I didn't find any reference about passing data into path parameters, so I feel like it is a bug.
After testing with the next curl command, I was able to create a SDN Zone :
However, this trimming is required in order to update a SDN Zone :
Is it possible to find a fix ? Are you interested in reviewing a PR if I try to patch it ?