Functions/PTAAdministration/Remove-PASPTASyslog.ps1
# .ExternalHelp psPAS-help.xml Function Remove-PASPTASyslog { [CmdletBinding(SupportsShouldProcess = $true)] param( [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [string]$ID ) BEGIN { Assert-VersionRequirement -SelfHosted Assert-VersionRequirement -RequiredVersion 14.6 }#begin PROCESS { #Create request URL $URI = "$($psPASSession.BaseURI)/api/pta/API/Administration/properties/SyslogOutboundDataList/$ID" if ($PSCmdlet.ShouldProcess($ID, 'Delete PTA Syslog')) { #send request to web service Invoke-PASRestMethod -Uri $URI -Method DELETE } }#process END { }#end } |