Skip to main content

Create a Global IP

POST 
/global_ips

Create a Global IP.

Request

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

422: Unprocessable entity. Check the 'detail' field in response for details.

default: Unexpected error

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"
}
}