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