update_wireguard_peer
Update an existing WireGuard peer by ID to modify settings like endpoint, port, keys, keepalive, and enabled state, with optional immediate application.
Instructions
Update an existing WireGuard peer by ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tun | No | Parent tunnel name (upstream references the tunnel by name) | |
| port | No | Peer endpoint port | |
| descr | No | Description | |
| enabled | No | Whether the peer is enabled | |
| peer_id | Yes | Peer ID (from search_wireguard_peers) | |
| endpoint | No | Peer endpoint hostname or IP | |
| keepalive | No | Persistent keepalive interval in seconds | |
| publickey | No | WireGuard public key | |
| presharedkey | No | Pre-shared key | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||