mirror of
https://github.com/luthermonson/go-proxmox.git
synced 2026-04-26 01:15:57 +03:00
[PR #220] [MERGED] refactor(pools): 🔨 update the Pool function to use the modern endpoint #224
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#224
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?
📋 Pull Request Information
Original PR: https://github.com/luthermonson/go-proxmox/pull/220
Author: @kernel-sanders
Created: 12/5/2025
Status: ✅ Merged
Merged: 12/17/2025
Merged by: @luthermonson
Base:
main← Head:add-modern-pools-endpoint📝 Commits (2)
ae576a8refactor(pools): 🔨 update the Pool function to use the modern endpointcfacde1test(pools): 🚨 fix the mock server to handle the query param on /pools📊 Changes
2 files changed (+89 additions, -5 deletions)
View changed files
📝
pools.go(+21 -5)📝
tests/mocks/pve7x/pools.go(+68 -0)📄 Description
Querying pools by path value (/pools/{poolid}) is deprecated and the new way is by query parameter (/pools/?poolid={poolid}). This supports nested pools. As the return value of /pools/ is always an array, the Pool function was modified to extract the single pool result and return it.
Old endpoint docs showing deprecation: https://pve.proxmox.com/pve-docs/api-viewer/#/pools/{poolid}
New endpoint docs: https://pve.proxmox.com/pve-docs/api-viewer/#/pools
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.