sla/List-SLATestConfigurations.ps1
function List-SLATestConfigurations { Param( [Parameter(Mandatory=$false)] [string] $SLATestIDs, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'papi', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/sla-api/v1/tests?slaTestIds=$SLATestIDs&accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section return $Result } catch { throw $_.Exception } } |