cloudlets/List-Cloudlets.ps1
function List-Cloudlets { Param( [Parameter(Mandatory=$false)] [string] $GroupID, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'cloudlets', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/cloudlets/api/v2/cloudlet-info?gid=$GroupID&accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section return $Result } catch { throw $_.Exception } } |