DNS Zones
Set record health check
/dns/zones/{zone_uuid}/records/{record_uuid}/health-checkAdd or update the health check on a DNS record. When the target stops responding, the record is automatically removed from DNS answers until it recovers. If every server of a name fails it still answers with all of them, unless strict is on. Billed at $10/month per health check.
Autorización
Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.
Parámetros de ruta
Cuerpo de la petición
Create or update the health check attached to a DNS record (1 per record).
Friendly name
length ≤ 128"http""https""tcp""ping"Host/IP to probe; defaults to the record's own value
length ≤ 255Port (required for TCP)
1 ≤ value ≤ 65535Path for HTTP/HTTPS checks
length ≤ 255Expected HTTP status code
100 ≤ value ≤ 599Por defecto200Seconds between checks (min 10)
10 ≤ value ≤ 3600Por defecto60Per-check timeout in seconds
1 ≤ value ≤ 60Por defecto5Successes before marking healthy
1 ≤ value ≤ 10Por defecto2Failures before marking unhealthy
1 ≤ value ≤ 10Por defecto3Whether the check is active (billed while enabled)
trueIf every server fails, do not answer. Off (default): when all the records of a name are unhealthy, DNS still answers with all of them. On: only healthy records are ever served, so the name gets an empty answer while none is healthy
falseRespuestas
Successful Response
application/json
"http""https""tcp""ping"If every server fails, do not answer: only healthy records are served (see the PUT).
false"healthy""unhealthy""unknown"date-timedate-timedate-timeCurrent status combined across every location; null while unavailable.
Propiedades (3)
healthy: every reporting location sees the target up; unhealthy: every one sees it down; degraded: some locations see it down; unknown: no location is reporting yet; paused: the check is disabled or the zone is not active.
"healthy""degraded""unhealthy""unknown""paused"Propiedades (2)
Location code, e.g. ams01
unhealthy when the location sees the target down, unknown while it is not reporting yet.
"healthy""unhealthy""unknown""paused"Last status change seen by any location (ISO 8601 UTC)
Percentage of the last 24 hours the target was seen up; null without data.