Public/Get-MrkNetworkMXL7FwRule.ps1

function Get-MrkNetworkMXL7FwRule{
    <#
    .SYNOPSIS
    Retrieves all Meraki L7 Firewall rules for a given Meraki network.
    MX series firewall rules are retrieved per NetworkID.
    {{baseUrl}}/networks/{networkId}/l7FirewallRules
    .DESCRIPTION
    Gets a list of all Meraki L7 Firewall for a given Meraki network.
    .EXAMPLE
    Get-MrkNetworkMXL7FwRule -networkId X_112233445566778899
    .PARAMETER networkId
    specify a networkId, find an id using Get-MrkNetworks
    #>

    [CmdletBinding()]
    Param (
        [Parameter(Mandatory)][ValidateNotNullOrEmpty()][String]$networkId
    )
    if ($mrkApiVersion -eq 'v0'){
        Invoke-MrkRestMethod -Method GET -ResourceID "/networks/$networkId/l7FirewallRules"
    } Else { #mrkApiVersion v1
        Invoke-MrkRestMethod -Method GET -ResourceID "/networks/$networkId/appliance/firewall/l7FirewallRules"
    }
}