Delete the WireGuard Peer
DELETE/wireguard_peers/:id
Delete the WireGuard peer.
Request
Path Parameters
Identifies the resource.
Responses
200: Successful response
- application/json
- Schema
- Example (from schema)
Schema
data
object
Identifies the resource.
Identifies the type of the resource.
ISO 8601 formatted date-time indicating when the resource was created.
ISO 8601 formatted date-time indicating when the resource was updated.
The WireGuard PublicKey
.
If you do not provide a Public Key, a new Public and Private key pair will be generated for you.
ISO 8601 formatted date-time indicating when peer sent traffic last time.
The id of the wireguard interface associated with the peer.
Your WireGuard Interface.PrivateKey
.
This attribute is only ever utlised if, on POST, you do NOT provide your own public_key
. In which case, a new Public and Private key pair will be generated for you. When your private_key
is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered.
{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": true,
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"public_key": "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=",
"last_seen": "2018-02-02T22:25:27.521Z",
"wireguard_interface_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"private_key": "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU="
}
}
default: Unexpected error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
Error[]
source
object
JSON pointer (RFC6901) to the offending entity.
Indicates which query parameter caused the error.
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}