Skip to content

New-PveNodesSuspendall

Suspend all VMs.

API: POST /nodes/{node}/suspendall, Proxmox VE API viewer

New-PveNodesSuspendall
[-PveTicket <PveTicket>]
[-MaxWorkers <int>]
-Node <string>
[-Vms <string>]
[<CommonParameters>]
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.

A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.