hapi/List-EdgeHostnameChangeRequests.ps1
function List-EdgeHostnameChangeRequests { Param( [Parameter(Mandatory=$false)] [string] [ValidateSet('PENDING')] $Status, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'papi', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/hapi/v1/change-requests?status=$Status&accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section -Body $Body return $Result } catch { throw $_.Exception } } |