Skip to content

Commit

Permalink
Update doc via platyPS and GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
FortiPower GitHub Actions Bot committed Feb 6, 2024
1 parent 6fbb184 commit c7c088e
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/Add-FGTFirewallAddress.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ Add-FGTFirewallAddress -name <String> [-country <String>] [-interface <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### mac
```
Add-FGTFirewallAddress -name <String> [-mac <String[]>] [-interface <String>] [-comment <String>]
[-visibility <Boolean>] [-allowrouting] [-data <Hashtable>] [-vdom <String[]>] [-connection <PSObject>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Add a FortiGate Address (ipmask, iprange, fqdn)

Expand Down Expand Up @@ -96,6 +103,13 @@ Add Address object type geo (country) with name FGT-Country-FR and value FR (Fra

### EXAMPLE 8
```
Add-FGTFirewallAddress -Name FGT-Mac -mac 01:02:03:04:05:06
```

Add Address object type mac (macaddr) with name FGT-Mac and value 01:02:03:04:05:06

### EXAMPLE 9
```
$data = @{ "color" = 23 }
PS C:\>Add-FGTFirewallAddress -Name FGT -ip 192.0.2.0 -mask 255.255.255.0 -data $data
```
Expand Down Expand Up @@ -209,6 +223,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -mac
{{ Fill mac Description }}
```yaml
Type: String[]
Parameter Sets: mac
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -interface
{{ Fill interface Description }}
Expand Down
30 changes: 30 additions & 0 deletions docs/Set-FGTFirewallAddress.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ Set-FGTFirewallAddress [-address] <PSObject> [-name <String>] [-country <String>
[-connection <PSObject>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### mac
```
Set-FGTFirewallAddress [-address] <PSObject> [-name <String>] [-mac <String[]>] [-interface <String>]
[-comment <String>] [-visibility <Boolean>] [-allowrouting] [-data <Hashtable>] [-vdom <String[]>]
[-connection <PSObject>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Change a FortiGate Address (ip, mask, comment, associated interface...
)
Expand Down Expand Up @@ -121,6 +128,14 @@ Change MyFGTAddress to set a new country (geo) FR (France)

### EXAMPLE 9
```
$MyFGTAddress = Get-FGTFirewallAddress -name MyFGTAddress
PS C:\>$MyFGTAddress | Set-FGTFirewallAddress -mac 01:02:03:04:05:06
```

Change MyFGTAddress to set a new mac address 01:02:03:04:05:06

### EXAMPLE 10
```
$data = @{ "color" = 23 }
PS C:\>$MyFGTAddress = Get-FGTFirewallAddress -name MyFGTAddress
PS C:\>$MyFGTAddress | Set-FGTFirewallAddress -data $color
Expand Down Expand Up @@ -250,6 +265,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -mac
{{ Fill mac Description }}
```yaml
Type: String[]
Parameter Sets: mac
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -interface
{{ Fill interface Description }}
Expand Down

0 comments on commit c7c088e

Please sign in to comment.