Skip to main content

http_tests

Creates, updates, deletes, gets or lists a http_tests resource.

Overview

Namehttp_tests
TypeResource
Idcloudflare.zero_trust.http_tests

Fields

The following fields are returned by SELECT queries:

DEX HTTP test details response

NameDatatypeDescription
namestringThe name of the HTTP synthetic application test (example: Atlassian Sign In Page)
hoststringThe url of the HTTP synthetic application test (example: http://example.com)
httpStatsobject
httpStatsByColoarray
intervalstringThe interval at which the HTTP synthetic application test is set to run. (example: 0h5m0s)
kindstring (http)
methodstringThe HTTP method to use when running the test (example: GET)
target_policiesarray
targetedboolean

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, test_iddeviceId, from, to, interval, coloGet test details and aggregate performance metrics for an http test for a given time period between 1 hour and 7 days.

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.
test_idstringunique identifier for a specific test
colostringOptionally filter result stats to a Cloudflare colo. Cannot be used in combination with deviceId param.
deviceIdarrayOptionally filter result stats to a specific device(s). Cannot be used in combination with colo param.
fromstringStart time for aggregate metrics in ISO ms
intervalstringTime interval for aggregate time slots.
tostringEnd time for aggregate metrics in ISO ms

SELECT examples

Get test details and aggregate performance metrics for an http test for a given time period between 1 hour and 7 days.

SELECT
name,
host,
httpStats,
httpStatsByColo,
interval,
kind,
method,
target_policies,
targeted
FROM cloudflare.zero_trust.http_tests
WHERE account_id = '{{ account_id }}' -- required
AND test_id = '{{ test_id }}' -- required
AND deviceId = '{{ deviceId }}'
AND from = '{{ from }}'
AND to = '{{ to }}'
AND interval = '{{ interval }}'
AND colo = '{{ colo }}'
;