Actions20
WireGuard Gateway → Update
AI-generatedSummary
Updates a WireGuard VPN Gateway on IONOS Cloud via a PUT request.
Inputs
- gatewayId (required) — The UUID of the WireGuard Gateway to update.
- name (required) — The human-readable name for the gateway.
- gatewayIP (required) — The public IP address assigned to the gateway.
- privateKey (required) — The private key for the WireGuard server (sensitive input).
- connections (required) — A fixed collection of network connections, each specifying a datacenterId, lanId, and optional IPv4/IPv6 CIDRs to attach to the gateway.
- location — The IONOS Cloud location (e.g., de-fra, gb-lhr) used to construct the API endpoint base URL. Defaults applied at runtime.
- description — An optional human-readable description of the gateway.
- interfaceIPv4CIDR — The IPv4 CIDR mask for the WireGuard interface (e.g., 172.16.0.1/30).
- interfaceIPv6CIDR — The IPv6 CIDR mask for the WireGuard interface (e.g., fd00::2/128).
- listenPort — The port the WireGuard server listens on (default: 51820, max: 65535).
- tier — The gateway performance tier: STANDARD, STANDARD_HA, ENHANCED, ENHANCED_HA, PREMIUM, or PREMIUM_HA.
Output shape
The updated WireGuard Gateway resource data as returned by the IONOS API.
Returns the full gateway object from the IONOS Cloud API on success; errors are thrown unless continue-on-fail is enabled.
Examples
Example 1: Update a WireGuard Gateway's name, IP, and tier.
Provide gatewayId, name, gatewayIP, and tier; other parameters may be omitted or left at defaults.