Create a WireGuard Interface
Changed onCreate a new WireGuard Interface. Current limitation of 10 interfaces per user can be created.
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/wireguard_interfaces
- Auth: HTTP bearer
Request body
Example request
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "wireguard_interface",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"network_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"name": "test interface",
"status": "provisioned",
"endpoint": "203.0.113.0:51871",
"public_key": "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=",
"region_code": "ashburn-va"
}Response
Creation request accepted. Provisioning is asynchronous; poll GET /wireguard_interfaces/{id} with the returned id to check status.
Example response
{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "wireguard_interface",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"network_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"name": "test interface",
"status": "provisioned",
"endpoint": "203.0.113.0:51871",
"public_key": "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=",
"region_code": "ashburn-va",
"region": {
"code": "ashburn-va",
"name": "Ashburn",
"record_type": "region"
}
}
}Changes
- breaking
the
//response's property type changed fromintegertostring, and format fromint32to no format for status - breaking
the
//response's property type changed fromintegertostring, and format fromint32to no format for status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- breaking
- breaking
the
//response's property type changed fromstringtointeger, and format from no format toint32for status - breaking
the
//response's property type changed fromstringtointeger, and format from no format toint32for status
- breaking