Find the api route to reset vms. #6

Closed
opened 2023-05-07 03:57:56 +00:00 by ajones · 2 comments
Owner
No description provided.
Author
Owner
https://pve.proxmox.com/pve-docs/api-viewer/
Author
Owner

From the aforementioned page:

HTTP: POST /api2/json/nodes/{node}/qemu/{vmid}/status/reboot

Reboot the VM by shutting it down, and starting it again. Applies pending changes.

Required Parameters:
node: The cluster node name.
vmid: The (unique) ID of the VM.

Optional Parameters:
timeout: Wait maximal timeout seconds for the shutdown.

Returns: string
(as of the time of this writing the sample output was not accessible)

Required Permissions:
Check: ["perm","/vms/{vmid}",["VM.PowerMgmt"]]

From the aforementioned page: HTTP: POST /api2/json/nodes/{node}/qemu/{vmid}/status/reboot Reboot the VM by shutting it down, and starting it again. Applies pending changes. Required Parameters: node: <string> The cluster node name. vmid: <integer> The (unique) ID of the VM. Optional Parameters: timeout: <integer> Wait maximal timeout seconds for the shutdown. Returns: string (as of the time of this writing the sample output was not accessible) Required Permissions: Check: ["perm","/vms/{vmid}",["VM.PowerMgmt"]]
Sign in to join this conversation.
No description provided.