create_vpn_server
Create an OpenVPN, WireGuard, or L2TP VPN server on your UniFi network by specifying host, site, and optional client subnet.
Instructions
Create a VPN server (OpenVPN, WireGuard, or L2TP).
host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID. vpn_type: 'openvpn', 'wireguard', or 'l2tp'. subnet: VPN client address pool CIDR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| name | Yes | ||
| site | Yes | ||
| subnet | No | ||
| enabled | No | ||
| vpn_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||