mediadeliveryreports/Get-AMDDataStore.ps1
function Get-AMDDAtaStore { Param( [Parameter(Mandatory=$true)] [string] $DataStoreID, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'papi', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/media-delivery-reports/v1/adaptive-media-delivery/data-stores/$DataStoreID`?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section -Body $Body return $Result } catch { throw $_.Exception } } |