datastream/List-DataStreamDatasetParameters.ps1
function List-DataStreamDatasetParameters { Param( [Parameter(Mandatory=$true)] [ValidateSet('RAW','AGGREGATED')] [string] $Type, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'default', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/datastream-config-api/v1/datastream1/datasets/$Type`?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section return $Result } catch { throw $_.Exception } } |