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