siteshield/List-SiteShieldMaps.ps1
function List-SiteShieldMaps { Param( [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'site-shield', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/siteshield/v1/maps?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section return $Result.SiteShieldMaps } catch { throw $_.Exception } } |