Skip to content

Commit

Permalink
Feature: add RebootVM capability
Browse files Browse the repository at this point in the history
  • Loading branch information
lucian-tx committed Nov 7, 2023
1 parent 03f4e42 commit a957835
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proxmox/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,10 @@ func (c *Client) ResetVm(vmr *VmRef) (exitStatus string, err error) {
return c.StatusChangeVm(vmr, nil, "reset")
}

func (c *Client) RebootVm(vmr *VmRef) (exitStatus string, err error) {
return c.StatusChangeVm(vmr, nil, "reboot")
}

func (c *Client) PauseVm(vmr *VmRef) (exitStatus string, err error) {
return c.StatusChangeVm(vmr, nil, "suspend")
}
Expand Down Expand Up @@ -765,7 +769,7 @@ func (c *Client) ResizeQemuDisk(vmr *VmRef, disk string, moreSizeGB int) (exitSt
func (c *Client) ResizeQemuDiskRaw(vmr *VmRef, disk string, size string) (exitStatus interface{}, err error) {
// PUT
//disk:virtio0
//size:+2G
// size:+2G
if disk == "" {
disk = "virtio0"
}
Expand Down

0 comments on commit a957835

Please sign in to comment.