< Back
Add-PodeAccessRule
Post
NAME Add-PodeAccessRule
SYNOPSIS
Adds an access rule to allow or deny IP addresses.
SYNTAX
Add-PodeAccessRule [-Access] <String> [-Type] <String> [-Values] <String[]> [<CommonParameters>]
DESCRIPTION
Adds an access rule to allow or deny IP addresses.
PARAMETERS
-Access <String>
The type of access to enable.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
What type of request are we configuring?
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Values <String[]>
A single, or an array of values.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-PodeAccessRule -Access Allow -Type IP -Values '127.0.0.1'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Add-PodeAccessRule -Access Deny -Type IP -Values @('192.168.1.1', '10.10.1.0/24')
RELATED LINKS
SYNOPSIS
Adds an access rule to allow or deny IP addresses.
SYNTAX
Add-PodeAccessRule [-Access] <String> [-Type] <String> [-Values] <String[]> [<CommonParameters>]
DESCRIPTION
Adds an access rule to allow or deny IP addresses.
PARAMETERS
-Access <String>
The type of access to enable.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
What type of request are we configuring?
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Values <String[]>
A single, or an array of values.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-PodeAccessRule -Access Allow -Type IP -Values '127.0.0.1'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Add-PodeAccessRule -Access Deny -Type IP -Values @('192.168.1.1', '10.10.1.0/24')
RELATED LINKS