Skip to main content

configs

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

Overview

Nameconfigs
TypeResource
Idcloudflare.hyperdrive.configs

Fields

The following fields are returned by SELECT queries:

Get Hyperdrive Response.

NameDatatypeDescription
errorsarray
messagesarray
resultobject
successbooleanReturn the status of the API call success. (true)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, hyperdrive_idReturns the specified Hyperdrive configuration.
listselectaccount_idReturns a list of Hyperdrives.
createinsertaccount_id, name, originCreates and returns a new Hyperdrive configuration.
editupdateaccount_id, hyperdrive_idPatches and returns the specified Hyperdrive configuration. Custom caching settings are not kept if caching is disabled.
updatereplaceaccount_id, hyperdrive_id, name, originUpdates and returns the specified Hyperdrive configuration.
deletedeleteaccount_id, hyperdrive_idDeletes the specified Hyperdrive.

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.
hyperdrive_idstringThe unique identifier of the Hyperdrive configuration.

SELECT examples

Returns the specified Hyperdrive configuration.

SELECT
errors,
messages,
result,
success
FROM cloudflare.hyperdrive.configs
WHERE account_id = '{{ account_id }}' -- required
AND hyperdrive_id = '{{ hyperdrive_id }}' -- required
;

INSERT examples

Creates and returns a new Hyperdrive configuration.

INSERT INTO cloudflare.hyperdrive.configs (
caching,
mtls,
name,
origin,
origin_connection_limit,
account_id
)
SELECT
'{{ caching }}',
'{{ mtls }}',
'{{ name }}' /* required */,
'{{ origin }}' /* required */,
{{ origin_connection_limit }},
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

UPDATE examples

Patches and returns the specified Hyperdrive configuration. Custom caching settings are not kept if caching is disabled.

UPDATE cloudflare.hyperdrive.configs
SET
caching = '{{ caching }}',
mtls = '{{ mtls }}',
name = '{{ name }}',
origin = '{{ origin }}',
origin_connection_limit = {{ origin_connection_limit }}
WHERE
account_id = '{{ account_id }}' --required
AND hyperdrive_id = '{{ hyperdrive_id }}' --required
RETURNING
errors,
messages,
result,
success;

REPLACE examples

Updates and returns the specified Hyperdrive configuration.

REPLACE cloudflare.hyperdrive.configs
SET
caching = '{{ caching }}',
mtls = '{{ mtls }}',
name = '{{ name }}',
origin = '{{ origin }}',
origin_connection_limit = {{ origin_connection_limit }}
WHERE
account_id = '{{ account_id }}' --required
AND hyperdrive_id = '{{ hyperdrive_id }}' --required
AND name = '{{ name }}' --required
AND origin = '{{ origin }}' --required
RETURNING
errors,
messages,
result,
success;

DELETE examples

Deletes the specified Hyperdrive.

DELETE FROM cloudflare.hyperdrive.configs
WHERE account_id = '{{ account_id }}' --required
AND hyperdrive_id = '{{ hyperdrive_id }}' --required
;