http_tests
Creates, updates, deletes, gets or lists a http_tests resource.
Overview
| Name | http_tests |
| Type | Resource |
| Id | cloudflare.zero_trust.http_tests |
Fields
The following fields are returned by SELECT queries:
- get
DEX HTTP test details response
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the HTTP synthetic application test (example: Atlassian Sign In Page) |
host | string | The url of the HTTP synthetic application test (example: http://example.com) |
httpStats | object | |
httpStatsByColo | array | |
interval | string | The interval at which the HTTP synthetic application test is set to run. (example: 0h5m0s) |
kind | string | (http) |
method | string | The HTTP method to use when running the test (example: GET) |
target_policies | array | |
targeted | boolean |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | account_id, test_id | deviceId, from, to, interval, colo | Get 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
test_id | string | unique identifier for a specific test |
colo | string | Optionally filter result stats to a Cloudflare colo. Cannot be used in combination with deviceId param. |
deviceId | array | Optionally filter result stats to a specific device(s). Cannot be used in combination with colo param. |
from | string | Start time for aggregate metrics in ISO ms |
interval | string | Time interval for aggregate time slots. |
to | string | End time for aggregate metrics in ISO ms |
SELECT examples
- get
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 }}'
;