Public/Get-MerakiNetworkWirelessSsidFirewallL7FirewallRules.ps1

function Get-MerakiNetworkWirelessSsidFirewallL7FirewallRules {
    <#
    .SYNOPSIS
    Retrieves the layer 7 firewall rules for a specified SSID in a Meraki network.
    .DESCRIPTION
    This function retrieves the layer 7 firewall rules for a specified SSID in a Meraki network using the Meraki Dashboard API.
    .PARAMETER AuthToken
    The Meraki API token for the account.
    .PARAMETER networkId
    The ID of the Meraki network for which to retrieve the layer 7 firewall rules.
    .PARAMETER SSIDNumber
    The number of the SSID for which to retrieve the layer 7 firewall rules.
    .EXAMPLE
    PS> Get-MerakiNetworkWirelessSsidFirewallL7FirewallRules -AuthToken "1234" -networkId "abcd" -SSIDNumber 1
    Retrieves the layer 7 firewall rules for SSID 1 in network "abcd" using the Meraki API token "1234".
    #>

    [CmdletBinding()]
    param (
        [parameter(Mandatory=$true)]
        [string]$AuthToken,
        [parameter(Mandatory=$true)]
        [string]$networkId,
        [parameter(Mandatory=$true)]
        [string]$SSIDNumber
    )

    try {
        $header = @{
            "X-Cisco-Meraki-API-Key" = $AuthToken
        }

        $response = Invoke-RestMethod -Method Get -Uri "https://api.meraki.com/api/v1/networks/$networkId/wireless/ssids/$SSIDNumber/firewall/l7FirewallRules" -Header $header -UserAgent "MerakiPowerShellModule/1.0.2 DocNougat"
        return $response
    }
    catch {
        Write-Host $_
        Throw $_
    }
}