Create a Global IP
POST/global_ips
Create a Global IP.
Request
- application/json
Body
required
ports object
A Global IP ports grouped by protocol code.
name string
A user specified name for the address.
description string
A user specified description for the address.
Responses
202: Successful response
- application/json
422: Unprocessable entity. Check the 'detail' field in response for details.
- application/json
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/global_ips' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"ports": {
"tcp": [
80,
8080
],
"udp": [
5000,
5050
]
},
"name": "test interface",
"description": "test interface"
}'
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",
"ip_address": "198.51.100.1",
"ports": {
"tcp": [
80,
8080
],
"udp": [
5000,
5050
]
},
"name": "test interface",
"description": "test interface"
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}