gtm/List-GTMLivenessTestErrors.ps1
function List-GTMLivenessTestErrors { Param( [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'papi', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/gtm-api/v1/reports/liveness-tests/error-code-descriptions?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section return $Result.items } catch { throw $_.Exception } } |