Getting Started with the Sophos Firewall SDK in Python
The Sophos Firewall SDK is a powerful tool for managing and automating Sophos firewalls. In this post, we'll cover the basics of getting started with the SDK in Python.
Step 1: Create a Python…
Disclaimer : This information is provided as-is for the benefit of the Community. Please contact Sophos Professional Services if you require assistance with your specific environment.
Table of Contents
Overview
Step 1. Enabling API
Step…
Disclaimer : This information is provided as-is for the benefit of the Community. Please contact Sophos Professional Services if you require assistance with your specific environment.
Table of Contents
Overview
Step 1. Enabling API
Step…
Hello everyone,
so I created a Powershell Script to get the M365 Endpoint URLs and IP-Ranges to Import them as an Object into the Firewall. But when I try to Import it it only throws an Error that the file format is not supported.
Here is the Output…
In 2018, Sophos integrated Let's Encrypt with their UTM series, leaving XG(S) users anticipating a similar feature. Many, including us, have turned to API solutions due to the lack of progress which is fine. However, the XG API feels less refined compared…
Problem with an API script Hello everyone. I have a python script that authenticates through the API by creating an access_token.txt file, file session_cookies.txt and another id_value.txt file for the Sophos Enterprise console. Then I run a second script…
Hello,
Using the Sophos API (v20) ( https://docs.sophos.com/nsg/sophos-firewall/20.0/API/index.html ), authentication works whether it's a local account or an Active Directory account.
However, when creating a VLAN through the API, an error occurs…
Good afternoon everyone,
Can anybody tell me what's the api that I should be using to setup the ddns with cloudflares?, it was working find untill last week but now the firewall is rejecting the global api for some reason.
Thank you very much in…
Hello Sophos Community,
I'm facing an issue where the DHCP server service fails to start after I've pushed my DHCP configuration through the API. Even when I navigate to the System Services in the Web GUI and press the start button, I encounter a peculiar…
Hi there,
When I call Get All Users API ( I use Postman) it will give me an error like this after 50 seconds:
< Status > Transaction fail </ Status >
and I get these errors /log/apiparser.log:
INFO Jan 16 15:45:39Z [15031]: Opcode response…
Hi Sophos Community,
I'm pleased to announce the release of a Python SDK for the SFOS firewall APIs.This SDK wraps the XML API in an easy-to-use component, that removes the biggest challenges in using the firewall's API to automate configuration tasks…
Hello everyone, I've been attempting to write a script to add (and also remove if needed) SSL/TLS scanning exclusions in Sophos Central. From what i've gathered, it's the following PATCH request that needs to be sent: Endpoint API | Sophos Central APIs…
Hi everyone,
I'm planning to add some Sophos API functions into an in-house application written in C#. At the moment I'm just working on a scratch app so that I can test code for authenticating, getting a token etc. without affecting live code, but…
Hello everyone,
I have Solarwinds HCO and one of the features is NCM, which allows me to manage/view/change device configurations. Some devices have a preconfigured device template in Solarwinds, but I realised that Sophos does not. So I need to create…
Dears, good morning,
We are setting up a SIEM in the cloud and I am using the SOPHOS API to share the tool's logs. I have already configured API profiles such as reading and forensics and have not been successful.
I have already made all the necessary…
Hello, I would like ask , if somebody know , if will be option monitor VPN IPsec via snmp or API. I found , that is offen question in the forum.
Sophos XG - SNMP - Monitor tunnel status
Check Ipsec Vpn Status by Command Cli
Read IPSec Connection…
I am attempting to create a script to call the Sophos API for a list of admins for auditing purposes. Specifically using this reference: https://developer.sophos.com/docs/common-v1/1/routes/admins/get
I am trying to pull this information using Powershell…
Hello,
How can I generate a custom report (like the one below) as a CSV (or any other structured data format) through the Firewall's API? (I would use the "Schedule" option to send this as an email attachment if it wasn't because only 50 max records…
Dear Sir,
In our hospital, we provide the internet access to inpatient by using Sophos Hotspot using vouchers. We create vouchers in user portal manually. But, we want to generate from EMR software using api. I can't find any api documentation regarding…
Hi,
Is it possible to retrieve the alert data from the "Threat Analysis Center - Threat Graphs" dashboard via API?
Using the XDRQuery API, I am able to retrieve the detection data (query "SELECT * FROM xdr_ioc_view WHERE Lower(ioc_detection_type)…
Hi there,
I want to create a NAT Rule using Import/Export Feature. Actually it is not working, when Adapting existing rules. What needs to be done for the import to work? Didn´t find any related threads here...
<NATRule transactionid=""> <Name…
I am investigating importing our TLS certificates using the SFOS API but running into an error that I am struggling to understand.
The request XML:
<? xml version "1.0" encoding "UTF-8" ?>
< Request APIVersion "1905.1" >
<!-- API Authentication…
Hi all,
I'm asking if there is a way to interact with ZTNA events through Sophos Central API?
I've done some research on developer.sophos.com/apis , but ZTNA does not seem to be referenced yet.