lds/List-LDSLogEncodings.ps1

function List-LDSLogEncodings
{
    Param(
        [Parameter(Mandatory=$false)] [string] [ValidateSet('email','ftp')] $DeliveryType,
        [Parameter(Mandatory=$false)] [string] [ValidateSet('cpcode-products','gtm','edns','answerx')] $LogSourceType,
        [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc',
        [Parameter(Mandatory=$false)] [string] $Section = 'default',
        [Parameter(Mandatory=$false)] [string] $AccountSwitchKey
    )
    
    $Path = "/lds-api/v3/log-configuration-parameters/encodings?deliveryType=$DeliveryType&logSourceType=$LogSourceType&accountSwitchKey=$AccountSwitchKey"

    try {
        $Result = Invoke-AkamaiRestMethod -Method GET -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section
        return $Result
    }
    catch {
        throw $_.Exception
    }
}