[GH-ISSUE #377] Re-implement: Qemu Hotplug #91

Open
opened 2026-02-28 00:40:32 +03:00 by kerem · 0 comments
Owner

Originally created by @Tinyblargon on GitHub (Nov 23, 2024).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/377

Hotplug should use the following struct. When the value is nil we wont change the value in PVE, this means that for updates we need to know the current settings. Defaults to false when nil during creation.

type QemuHotplug struct {
	Disk    *bool `json:"disk,omitempty"`
	Network *bool `json:"network,omitempty"`
	USB     *bool `json:"usb,omitempty"`
	Memory  *bool `json:"memory,omitempty"`
	CPU     *bool `json:"cpu,omitempty"`
}
Originally created by @Tinyblargon on GitHub (Nov 23, 2024). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/377 Hotplug should use the following struct. When the value is `nil` we wont change the value in PVE, this means that for updates we need to know the current settings. Defaults to `false` when `nil` during creation. ```go type QemuHotplug struct { Disk *bool `json:"disk,omitempty"` Network *bool `json:"network,omitempty"` USB *bool `json:"usb,omitempty"` Memory *bool `json:"memory,omitempty"` CPU *bool `json:"cpu,omitempty"` } ```
Sign in to join this conversation.
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/proxmox-api-go#91
No description provided.