Skip to main content

endpoint_healthchecks

Creates, updates, deletes, gets or lists an endpoint_healthchecks resource.

Overview

Nameendpoint_healthchecks
TypeResource
Idcloudflare.diagnostics.endpoint_healthchecks

Fields

The following fields are returned by SELECT queries:

Endpoint Health Checks response.

NameDatatypeDescription
idstringUUID. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
namestringOptional name associated with this check (example: My Endpoint)
check_typestringtype of check to perform (icmp) (default: icmp, example: icmp)
endpointstringthe IP address of the host to perform checks against (example: 203.0.113.1)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, idGet a single Endpoint Health Check.
listselectaccount_idList Endpoint Health Checks.
createinsertaccount_id, check_type, endpointCreate Endpoint Health Check.
updatereplaceaccount_id, id, check_type, endpointUpdate a Endpoint Health Check.
deletedeleteaccount_id, idDelete Endpoint Health Check.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
idstringResource ID.

SELECT examples

Get a single Endpoint Health Check.

SELECT
id,
name,
check_type,
endpoint
FROM cloudflare.diagnostics.endpoint_healthchecks
WHERE account_id = '{{ account_id }}' -- required
AND id = '{{ id }}' -- required
;

INSERT examples

Create Endpoint Health Check.

INSERT INTO cloudflare.diagnostics.endpoint_healthchecks (
check_type,
endpoint,
name,
account_id
)
SELECT
'{{ check_type }}' /* required */,
'{{ endpoint }}' /* required */,
'{{ name }}',
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

REPLACE examples

Update a Endpoint Health Check.

REPLACE cloudflare.diagnostics.endpoint_healthchecks
SET
check_type = '{{ check_type }}',
endpoint = '{{ endpoint }}',
name = '{{ name }}'
WHERE
account_id = '{{ account_id }}' --required
AND id = '{{ id }}' --required
AND check_type = '{{ check_type }}' --required
AND endpoint = '{{ endpoint }}' --required
RETURNING
errors,
messages,
result,
success;

DELETE examples

Delete Endpoint Health Check.

DELETE FROM cloudflare.diagnostics.endpoint_healthchecks
WHERE account_id = '{{ account_id }}' --required
AND id = '{{ id }}' --required
;