Delete a Public Internet Gateway
DELETE/public_internet_gateways/:id
Delete a Public Internet Gateway.
Request
Path Parameters
id uuidrequired
Identifies the resource.
Responses
200: Successful response
- application/json
default: Unexpected error
- application/json
Request samples
curl -L -X DELETE 'https://api.telnyx.com/v2/public_internet_gateways/:id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"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",
"network_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"name": "test interface",
"status": "provisioned",
"public_ip": "127.0.0.1",
"region_code": "ashburn-va",
"region": {
"code": "ashburn-va",
"name": "Ashburn",
"record_type": "region"
}
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}