Skip to main content

Create a Global IP health check

POST 
/global_ip_health_checks

Create a Global IP health check.

Request

Body

required

    health_check_type string

    The Global IP health check type.

    health_check_params object

    A Global IP health check params.

    global_ip_id uuid

    Global IP ID.

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_ip_health_checks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"health_check_type": "http_status_2xx",
"health_check_params": {
"path": "/",
"port": 8080
},
"global_ip_id": "a836125b-20b6-452e-9c03-2653f09c7ed7"
}'

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",
"health_check_type": "http_status_2xx",
"health_check_params": {
"path": "/",
"port": 8080
},
"global_ip_id": "a836125b-20b6-452e-9c03-2653f09c7ed7"
}
}