api-definitions/Get-APIEndpointVersion.ps1
function Get-APIEndpointVersion { Param( [Parameter(Mandatory=$true)] [int] $APIEndpointID, [Parameter(Mandatory=$true)] [int] $VersionNumber, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'default', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/api-definitions/v2/endpoints/$APIEndpointID/versions/$VersionNumber/resources-detail?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section return $Result } catch { throw $_.Exception } } |