[GH-ISSUE #206] Cluster ID and Name field is always empty #57

Closed
opened 2026-03-03 15:29:55 +03:00 by kerem · 0 comments
Owner

Originally created by @dvtkrlbs on GitHub (Jul 16, 2025).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/206

Usint the Client.Cluster and also running Cluster.status on it still results in empty values for the Cluster struct
cluster: {client:0xc000110780 Version:0 Quorate:0 Nodes:[0xc0004fc4e0 0xc00029bd40] Name: ID:}

client := proxmox.NewClient(URL), proxmox.WithAPIToken(TokenID, Token))
_, err := client.Version(ctx)
if err != nil {
  log.Fatalf("%v", err)
}

cluster, _ := client.Cluster(ctx)
_ := cluster.Status(ctx)

fmt.Printf("%+v", cluster)

the body after a call to Status looks like this

{"data":[{"nodeid":0,"ip":"redacted","online":1,"name":"testpve","level":"","id":"node/testpve","local":1,"type":"node"}]}
Originally created by @dvtkrlbs on GitHub (Jul 16, 2025). Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/206 Usint the Client.Cluster and also running Cluster.status on it still results in empty values for the Cluster struct `cluster: {client:0xc000110780 Version:0 Quorate:0 Nodes:[0xc0004fc4e0 0xc00029bd40] Name: ID:}` ```go client := proxmox.NewClient(URL), proxmox.WithAPIToken(TokenID, Token)) _, err := client.Version(ctx) if err != nil { log.Fatalf("%v", err) } cluster, _ := client.Cluster(ctx) _ := cluster.Status(ctx) fmt.Printf("%+v", cluster) ``` the body after a call to Status looks like this ```json {"data":[{"nodeid":0,"ip":"redacted","online":1,"name":"testpve","level":"","id":"node/testpve","local":1,"type":"node"}]} ```
kerem closed this issue 2026-03-03 15:29:55 +03:00
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#57
No description provided.