post_vpn_client_config
Creates a new VPN client configuration for PPTP or OpenVPN, specifying host, credentials, authentication methods, and more.
Instructions
Creates a new VPNClientConfig .
Error codes: inval, nomem, ioerror, nodev, noent, netdown, exist, busy, none, internal, authentication_failed, auth_failed, resolv_failed, connect_timeout, connect_failed, setup_control_failed, setup_call_failed, protocol, remote_terminated, remote_disconnect
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | VPN config id | |
| description | No | VPN description | |
| type | No | VPN server type — Values: `pptp`: PPTP VPN server; `openvpn`: OpenVPN server | |
| active | No | is this configuration active. Only one configuration is active at a time. | |
| conf_pptp | No | only available when type is PPTP | |
| remote_host | No | remote host IP or name | |
| username | No | VPN username | |
| password | No | VPN password | |
| mppe | No | Values: `disable`: disable mppe; `require`: require mppe; `require_128`: require 128 bits mppe | |
| allowed_auth | No | allowed authentication methods dictionnary with following keys: |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||