Skip to content

New-PveClusterHaResourcesMigrate

Request resource migration (online) to another node.

API: POST /cluster/ha/resources/{sid}/migrate, Proxmox VE API viewer

New-PveClusterHaResourcesMigrate
[-PveTicket <PveTicket>]
-Node <string>
-Sid <string>
[<CommonParameters>]
Parameter Type Required Description
-PveTicket PveTicket No Ticket data connection.
-Node string Yes Target node.
-Sid string Yes HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).

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.