mirror of
https://github.com/luthermonson/go-proxmox.git
synced 2026-04-26 17:35:48 +03:00
[GH-ISSUE #197] [feat] Make API response from api2/json/cluster/status available #54
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#54
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 @justusbunsi on GitHub (Jun 3, 2025).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/197
Hi, I saw the
Clustertype has a functionStatus, but it doesn't make its api response available as return value. I am trying to implement this but have difficulties with the response content. It contains 2 different data types: Cluster information and Node information (see API reference). Here an example response:As a user, it would be best if
cluster.Status()would return 3 items:"type": "cluster""type": "node"objectsFrom an API perspective,
cluster.Status()could also just return 2 items in 2 different ways:[]ClusterStatusItemthat overlap both types. Something like this:@luthermonson I'd be happy for your thoughts on this. 🙂
@justusbunsi commented on GitHub (Jun 17, 2025):
🙈 https://github.com/luthermonson/go-proxmox/pull/203#issuecomment-2980793967. Sorry for the noise.