Skip to content

Commit

Permalink
Policy(Member): Add .EXAMPLE to add source or destination interface
Browse files Browse the repository at this point in the history
  • Loading branch information
alagoutte committed Jan 8, 2025
1 parent b7614bc commit 5d8d101
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion PowerFGT/Public/cmdb/firewall/policy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function Add-FGTFirewallPolicyMember {
Add a FortiGate Policy Member
.DESCRIPTION
Add a FortiGate Policy Member (source or destination address)
Add a FortiGate Policy Member (source or destination address/interface)
.EXAMPLE
$MyFGTPolicy = Get-FGTFirewallPolicy -name MyFGTPolicy
Expand All @@ -340,6 +340,17 @@ function Add-FGTFirewallPolicyMember {
Add MyAddress1 and MyAddress2 member to destination of MyFGTPolicy
.EXAMPLE
$MyFGTPolicy = Get-FGTFirewallPolicy -name MyFGTPolicy
PS C:\>$MyFGTPolicy | Add-FGTFirewallPolicyMember -srcintf port1
Add port1 member to source interface of MyFGTPolicy
.EXAMPLE
$MyFGTPolicy = Get-FGTFirewallPolicy -name MyFGTPolicy
PS C:\>$MyFGTPolicy | Add-FGTFirewallPolicyMember -dstintf port2
Add port2 member to destination interface of MyFGTPolicy
#>

[CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'low')]
Expand Down

0 comments on commit 5d8d101

Please sign in to comment.