Public/Get-TmdsPolicyFirewallId.ps1
function Get-TmdsPolicyFirewallId { param ( # Parameter help description [Parameter(ParameterSetName = 'ById', ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)] [int]$PolicyId ) process { foreach ($id in $PolicyId) { $Resource = "policies/$id/firewall/assignments" $params = @{ 'Resource' = $Resource 'Method' = "Get" } (Invoke-TmdsApiCall @params).assignedRuleIDs } } } |