mirror of
https://github.com/sophos/sophos-firewall-sdk.git
synced 2026-04-27 00:25:49 +03:00
[PR #79] [MERGED] feat: Add submit_xml method for posting XML as a string argument #78
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sophos-firewall-sdk#78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sophos/sophos-firewall-sdk/pull/79
Author: @mamullen13316
Created: 8/28/2024
Status: ✅ Merged
Merged: 8/28/2024
Merged by: @mamullen13316
Base:
main← Head:submit_xml📝 Commits (2)
9332f9efeat: add submit_xml method for posting XML as a string argument7da9da5version: update to v0.1.49📊 Changes
3 files changed (+70 additions, -2 deletions)
View changed files
📝
pyproject.toml(+1 -1)📝
sophosfirewall_python/api_client.py(+51 -1)📝
sophosfirewall_python/firewallapi.py(+18 -0)📄 Description
Added the
submit_xmlmethod which provides the ability to pass in the XML payload needed to configure a feature as an argument to the method. The XML string can also use Jinja2 variable substitution by using{{ variable_name }}inside of the body.EXAMPLE:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.