[GH-ISSUE #200] Query network interfaces by type #56

Closed
opened 2026-03-03 15:29:55 +03:00 by kerem · 1 comment
Owner

Originally created by @andyjsmith on GitHub (Jun 10, 2025).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/200

When querying node.Networks(), there is no way to set the type param in the request. The Proxmox API docs make it seem like an absent type means that you get all types, but that is not the case.

For example, <node>/network?type=any_bridge returns both bridge and vnet interfaces, yet <node>/network does not return any vnet interfaces. So there is currently no way to list vnet bridges with go-proxmox.

Originally created by @andyjsmith on GitHub (Jun 10, 2025). Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/200 When querying `node.Networks()`, there is no way to set the `type` param in the request. The Proxmox API docs make it seem like an absent `type` means that you get all types, but that is not the case. For example, `<node>/network?type=any_bridge` returns both `bridge` and `vnet` interfaces, yet `<node>/network` does not return any `vnet` interfaces. So there is currently no way to list `vnet` bridges with go-proxmox.
kerem closed this issue 2026-03-03 15:29:55 +03:00
Author
Owner

@andyjsmith commented on GitHub (Jun 14, 2025):

Added in #201

<!-- gh-comment-id:2972905490 --> @andyjsmith commented on GitHub (Jun 14, 2025): Added in #201
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#56
No description provided.