[GH-ISSUE #245] Access Realm (Domain) Sync uses incorrect API path #64

Open
opened 2026-03-03 15:29:58 +03:00 by kerem · 0 comments
Owner

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 implemented for 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)

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](https://pve.proxmox.com/pve-docs/api-viewer/index.html#/access/domains/{realm}/sync). Currently, the method always returns: `501 Method 'POST /access/domains/{realm}' not implemented` for 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) `
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-proxmox#64
No description provided.