sophos_update_firewall_rule
Update configuration fields on an existing firewall rule, including action, zones, logging, and status, to adjust security policy behavior.
Instructions
Update configuration fields on an existing firewall rule.
Use when modifying parameters such as logging, action, zones, host objects, or status on an existing security policy.
Args: name: Name of the firewall rule to update. action: Optional new rule policy action ('Accept', 'Drop', or 'Reject'). source_zones: Optional list of source network zone names. destination_zones: Optional list of destination network zone names. source_networks: Optional list of source host/network object names. destination_networks: Optional list of destination host/network object names. services: Optional list of service object names. log_traffic: Optional logging setting ('Enable' or 'Disable'). status: Optional rule status ('Enable' or 'Disable'). client: Optional SophosFirewallClient instance.
Returns: API response status dictionary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the firewall rule to update. | |
| action | No | Rule policy action: 'Accept', 'Drop', or 'Reject'. | |
| client | No | ||
| status | No | Rule status: 'Enable' or 'Disable'. | |
| services | No | List of service object names (e.g. ['HTTP', 'HTTPS']). | |
| log_traffic | No | Enable or disable logging: 'Enable' or 'Disable'. | |
| source_zones | No | List of source network zone names (e.g. ['LAN']). | |
| source_networks | No | List of source host/network object names (e.g. ['Any']). | |
| destination_zones | No | List of destination network zone names (e.g. ['WAN']). | |
| destination_networks | No | List of destination host/network object names (e.g. ['Any']). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |