msl/New-MSLStream.ps1
function New-MSLStream { Param( [Parameter(Mandatory=$true)] [string] $Body, [Parameter(Mandatory=$false)] [string] $CloneInternalSettingsFromStreamID, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'papi', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/config-media-live/v2/msl-origin/streams?cloneInternalSettingsFromStreamId=$CloneInternalSettingsFromStreamID&accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method POST -Path $Path -Body $Body -EdgeRCFile $EdgeRCFile -Section $Section return $Result } catch { throw $_.Exception } } |