Skip to content

New-PveNodesAptUpdate

This is used to resynchronize the package index files from their sources (apt-get update).

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

Aliases: Update-PveNode

New-PveNodesAptUpdate
[-PveTicket <PveTicket>]
-Node <string>
[-Notify <bool>]
[-Quiet <bool>]
[<CommonParameters>]
Parameter Type Required Description
-PveTicket PveTicket No Ticket data connection.
-Node string Yes The cluster node name.
-Notify bool No Send notification about new packages.
-Quiet bool No Only produces output suitable for logging, omitting progress indicators.

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.