diff --git a/AsBuiltReport.Aruba.ClearPass.psd1 b/AsBuiltReport.Aruba.ClearPass.psd1 index b779df0..85286d5 100644 --- a/AsBuiltReport.Aruba.ClearPass.psd1 +++ b/AsBuiltReport.Aruba.ClearPass.psd1 @@ -58,7 +58,7 @@ RequiredModules = @( }, @{ ModuleName = 'PowerArubaCP'; - ModuleVersion = '0.6.0' + ModuleVersion = '0.7.0' } ) diff --git a/Src/Private/Get-AbrCPPMService.ps1 b/Src/Private/Get-AbrCPPMService.ps1 index c91da38..63f5464 100644 --- a/Src/Private/Get-AbrCPPMService.ps1 +++ b/Src/Private/Get-AbrCPPMService.ps1 @@ -31,8 +31,8 @@ function Get-AbrCPPMService { $service = Get-ArubaCPService -limit 1000 | Sort-Object order_no if ( $defaultArubaCPConnection.version -gt [version]"6.11.0") { - $enf_policy = (Invoke-ArubaCPRestMethod "api/enforcement-policy" -limit 1000)._embedded.items - $enf_profile = (Invoke-ArubaCPRestMethod "api/enforcement-profile" -limit 1000)._embedded.items + $enf_policy = Get-ArubaCPEnforcementPolicy -limit 1000 + $enf_profile = Get-ArubaCPEnforcementProfile -limit 1000 } if ($service -and $InfoLevel.Service -ge 1) {