lds/Set-LDSLogConfiguration.ps1
function Set-LDSLogConfiguration { Param( [Parameter(Mandatory=$true)] [string] $logConfigurationId, [Parameter(Mandatory=$true)] [string] $NewConfigJSON, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'default', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/lds-api/v3/log-configurations/$logConfigurationId`?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method PUT -Path $Path -EdgeRCFile $EdgeRCFile -Section $Section -Body $NewConfigJSON return $Result } catch { throw $_.Exception } } |