Functions/Policies/Get-PASMasterPolicy.ps1
function Get-PASMasterPolicy { [CmdletBinding()] param ( <# [Parameter( Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true )] [int]$PolicyId #> ) begin { Assert-VersionRequirement -RequiredVersion 14.6 $PolicyId = 1 } process { $URI = "$($psPASSession.BaseURI)/API/Policies/$PolicyId" $result = Invoke-PASRestMethod -Uri $URI -Method GET if ($null -ne $result) { $result } } end {} } |