Closed jcheron closed 2 years ago
Hi,
$proxmox = new PVE($serverUrl, $rootUser, $rootPwd, $port,'pam',true);
$proxmox->nodes()->node($parNodeName)->qemu()->vmId($vmId)->status()->start()->post();
I have tested this on my test code, and it's work, use post or other function behind. In next updates i intergrade default method's when only one is available.
Indeed, if I don't call the post
, it doesn't post...
I expected the start
method to send a post request directly to the api.
Currently it is not in yet because there are functions that have e.g. get, post and put. Then the question is how to solve it there. For functions where there is only one, I will add this. With the others I must still think of something clever how I do that so that one recognizes approximately what is needed / required.
Describe the bug Calling the start or shutdown methods has no effect on the VM. No POST request is executed to https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/status/start.
To Reproduce
Expected behavior A request is sent to https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/status/start The VM starts.
Screenshots
Desktop :
Server (Proxmox server):