opn_add_alias
Create a new firewall alias (IP list, network group, port group, etc.).
Use this when you need to create a reusable alias for use in firewall rules. Aliases group IPs, networks, or ports under a single name.
This does NOT require savepoint protection — aliases are metadata definitions that only affect traffic when referenced by a firewall rule.
Parameters:
- name: alias name (alphanumeric and underscores only, no spaces)
- alias_type: 'host' (IPs), 'network' (CIDRs), 'port' (ports/ranges), 'urltable' (URL-based IP list), 'geoip' (country codes)
- content: alias entries separated by newlines. For GeoIP, use country codes (one per line, e.g. 'DE\nFR\nNL'). For host/network, use IPs/CIDRs.
- description: human-readable description
Returns: dict with 'result' (str) and 'uuid' (str) of the new alias.