hapi/Get-EdgeHostnameChangeRequest.ps1
function Get-EdgeHostnameChangeRequest { Param( [Parameter(Mandatory=$true)] [string] $ChangeID, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'default', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/hapi/v1/change-requests/$ChangeID`?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section -Body $Body return $Result } catch { throw $_.Exception } } |