Create a Global IP health check
POST/global_ip_health_checks
Create a Global IP health check.
Request
- application/json
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
- 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_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"
}
}
{
"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": {}
}
]
}