New-PveNodesSuspendall
Suspend all VMs.
API: POST /nodes/{node}/suspendall, Proxmox VE API viewer
Syntax
Section titled “Syntax”New-PveNodesSuspendall [-PveTicket <PveTicket>] [-MaxWorkers <int>] -Node <string> [-Vms <string>] [<CommonParameters>]Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
-PveTicket |
PveTicket |
No | Ticket data connection. |
-MaxWorkers |
int |
No | Maximal number of parallel migration job. If not set, uses’max_workers’ from datacenter.cfg, and if that’s not set the available’ .’ CPU threads, clamped to a maximum of 8, are used. |
-Node |
string |
Yes | The cluster node name. |
-Vms |
string |
No | Only consider Guests with these IDs. |
Every parameter also binds by property name from the pipeline, so an object with node and vmid properties (the output of Get-PveGuest, for one) fills -Node and -Vmid. Without -PveTicket the cmdlet uses the last connection, see Connection.
Output
Section titled “Output”A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.