cloudlets/Get-CloudletPolicyAssociatedProperties.ps1
function Get-CloudletPolicyAssociatedProperties { Param( [Parameter(Mandatory=$true)] [string] $PolicyID, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'cloudlets', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/cloudlets/api/v2/policies/$PolicyID/properties?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section return $Result } catch { throw $_.Exception } } |