Disable PodeServer - mdaneri/Pode GitHub Wiki
Blocks new incoming requests by adding middleware that returns a 503 Service Unavailable status when the Pode Watchdog client is active.
Disable-PodeServer [[-RetryAfter] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
This function integrates middleware into the Pode server, preventing new incoming requests while the Pode Watchdog client is active. All requests receive a 503 Service Unavailable response, including a 'Retry-After' header that specifies when the service will become available.
PS C:\> {{ Add example code here }}{{ Add example description here }}
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the time in seconds clients should wait before retrying their requests. Default is 3600 seconds (1 hour).
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: 3600
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.