Create Wireguard Peer
Creates a new WireGuard Peer.
The full WireGuard Peer needs to be provided to create the object. Optional data will be filled with defaults or left empty.
To create a WireGuard Peer, perform a POST
request.
Endpoint
Use the following endpoint to create a WireGuard Peer: https://vpn.de-fra.ionos.com/wireguardgateways/{gatewayId}/peers
.
Request
Below is the list of mandatory body parameters for creating a WireGuard Peer:
Body Parameters | Required | Type | Description | Example |
---|---|---|---|---|
| no | object | Metadata related to the WireGuard peer. |
|
| yes | object | Properties with all data needed to create a new WireGuard peer. Note: There is a limit of 20 peers per gateway. | |
| yes | string | The human-readable name of the WireGuard peer. |
|
| no | string | Human-readable description of the WireGuard peer. |
|
| yes | object | Properties needed to define the WireGuard endpoint. | |
| yes | string | Hostname or IPV4 address that the WireGuard Server will connect to. |
|
| yes | integer | Port that the WireGuard Server will connect to. | 51820 |
| yes | array | The subnet CIDRs that are allowed to connect to the WireGuard Gateway. Specify "a.b.c.d/xy" for an individual IP address. Specify "0.0.0.0/0" or "::/0" for all IP addresses. |
|
| yes | string | The public key for the WireGuard peer. |
|
Response
201 Successful operation
Result: The WireGuard Peer is successfully created. the id
and other details of the created WireGuard Peer are provided in the response.
Last updated