sophos_create_ip_host
Create IP host objects (IP, Network, Range, or List) to define host and subnet definitions for firewall policies.
Instructions
Create a new IP host object (IP Address, Network, IP Range, or IP List).
Use when registering host IP or network subnet definitions for firewall policies.
Args: name: Unique name for the host object. host_type: Type of host object ('IP', 'Network', 'IPRange', or 'IPList'). Default is 'IP'. ip_address: IP address or starting IP address/subnet. subnet_mask: Subnet mask if host_type is 'Network' (e.g. '255.255.255.0' or '24'). ip_family: IP protocol family ('IPv4' or 'IPv6'). Default is 'IPv4'. client: Optional SophosFirewallClient instance.
Returns: API response status dictionary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique name for the host object. | |
| client | No | ||
| host_type | No | Type of host object: 'IP', 'Network', 'IPRange', or 'IPList'. | IP |
| ip_family | No | IP protocol family: 'IPv4' or 'IPv6'. | IPv4 |
| ip_address | No | IP address or network prefix (e.g. '192.168.1.100'). | 192.168.1.100 |
| subnet_mask | No | Subnet mask if host_type is 'Network' (e.g. '255.255.255.0' or '24'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |