nsapi/New-NetstorageDirectory.ps1
function New-NetstorageDirectory { Param( [Parameter(Mandatory=$true)] [string] $Path, [Parameter(Mandatory=$false)] [string] $AuthFile = "~/.akamai-cli/.netstorage/auth", [Parameter(Mandatory=$false)] [string] $Section = "default" ) $Action = "mkdir" try { $Result = Invoke-AkamaiNSAPIRequest -Path $Path -Action $Action -AuthFile $Authfile -Section $Section return $Result } catch { throw $_ } } |