property/Get-RuleFormatSchema.ps1
function Get-RuleFormatSchema { Param( [Parameter(Mandatory=$true)] [string] $ProductID, [Parameter(Mandatory=$true)] [string] $RuleFormat, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'papi', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/papi/v1/schemas/products/$ProductID/$RuleFormat`?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section return $Result } catch { throw $_.Exception } } |