testlablive / sophosendpoints Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
While the exception list is being created nicely, it doesn't actually get activated. You have to click into it manually and save it to make the exception work. This makes it impossible to update the exception list automatically e. g. on a daily basis. Sophos engineering investigated this, this is what they found:
This is a problem with the script, not the API.
As per the documentation here: https://www.sophos.com/en-us/medialibrary/PDFs/documentation/UTMonAWS/Sophos-UTM-RESTful-API.pdf?la=en
3.6 X-Restd-Insert header
In many cases when you create a new object, the object needs to be directly inserted into a node in order to be active. This usually takes two operations; however, there is an additional header you can use when creating objects to automatically activate the objects. The header will insert a reference at the given position inside the node.
For example, if you create a “packetfilter/packetfilter” rule object and need to add the object into the “packetfilter.rules” node and make it active, you can use the “1” flag to set the rule as the first rule. If you need to add the new rule object as the last rule, you can use “-1” flag. If you need the new rule object to reside somewhere in the middle, e.g., fourth rules, you can set the flag to “4”.
X-Restd-Insert: packetfilter.rules 4
This script does not utilize the X-RESTD-INSERT header, or do a second operation to add it, and therefore does not update the reference to include this.
Hi there. Great Module. It makes things really easier.
Any Chance to include the MS IPv6-Addresses too?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.