Disable-PodeServer
SYNOPSIS
Blocks new incoming requests by adding middleware that returns a 503 Service Unavailable status when the Pode Watchdog client is active.
SYNTAX
Disable-PodeServer [[-RetryAfter] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
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.
EXAMPLES
Example 1
PS C:\> {{ Add example code here }}
{{ Add example description here }}
PARAMETERS
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RetryAfter
Specifies 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: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.