mirror of
https://github.com/luthermonson/go-proxmox.git
synced 2026-04-26 01:15:57 +03:00
[GH-ISSUE #245] Access Realm (Domain) Sync uses incorrect API path #64
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-proxmox#64
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 @ltcptgeneral on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/245
Versions
proxmox-go: v0.4.0
proxmox: 9.1.5
go: 1.26.0
Issue
The domain.Sync method currently uses POST "/access/domains/{realm}" which is incorrect (maybe this changed recently?). The correct path should be POST "/access/domains/{realm}/sync" according to the api documentation.
Currently, the method always returns:
501 Method 'POST /access/domains/{realm}' not implementedfor any realm.Probable Fix
Fixing should only require changing access.go:125
return d.client.Post(ctx, fmt.Sprintf("/access/domains/%s", d.Realm), options, nil)to:
return d.client.Post(ctx, fmt.Sprintf("/access/domains/%s/sync", d.Realm), options, nil)