test-management/Get-TestConfigVersion.ps1
function Get-TestConfigVersion { Param( [Parameter(Mandatory=$true)] [string] $ConfigVersionID, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'default', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/test-management/v2/functional/config-versions/$ConfigVersionID`?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section return $Result } catch { throw $_.Exception } } |