SophosFirewall.Core

1.4.4

Core helper functions for Sophos Firewall API modules. Provides session management, API communication, XML escaping, and response validation.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name SophosFirewall.Core

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name SophosFirewall.Core

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • Jan Weis

Tags

Sophos Firewall XGS SFOS API Core Helper

Functions

Connect-SfosFirewall Disconnect-SfosFirewall Get-SfosSession Invoke-SfosApi Get-SfosApiStatus Assert-SfosApiReturnSuccess Resolve-SfosParameters ConvertTo-SfosXmlEscaped ConvertFrom-SfosArchive Connect-SfosWebAdmin Invoke-SfosWebAdminRequest Invoke-SfosWebAdminRestRequest Connect-SfosCliConsole Send-SfosCliConsoleInput Receive-SfosCliConsoleOutput Disconnect-SfosCliConsole

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

1.4.4: Assert-SfosApiReturnSuccess now includes the element path(s) the firewall names in an InvalidParams block, where the response carries one, in the message it throws. A rejection such as code 501 often names the exact field it refused there, undocumented by every other source; the block was previously read and discarded, so the caller only ever saw "validation failed" without the field name. An empty InvalidParams block changes nothing. The warning about a status found outside the path -ObjectName expects is no longer limited to codes 200 and 216: it is raised for every code treated as success, so a write answering 201 no longer hides a wrong path.

FileList

Version History

Version Downloads Last updated
1.4.4 (current version) 100 8/27/2026
1.4.0 100 8/22/2026
1.3.5 49 8/18/2026
1.3.0 43 8/13/2026
1.1.0 9 8/11/2026