Skip to main content

sippy

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

Overview​

Namesippy
TypeResource
Idcloudflare.r2.sippy

Fields​

The following fields are returned by SELECT queries:

Get Sippy Configuration response.

NameDatatypeDescription
destinationobjectDetails about the configured destination bucket.
enabledbooleanState of Sippy for this bucket.
sourceobjectDetails about the configured source bucket.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, bucket_namecf-r2-jurisdictionGets configuration for Sippy for an existing R2 bucket.
updatereplaceaccount_id, bucket_namecf-r2-jurisdictionSets configuration for Sippy for an existing R2 bucket.
deletedeletebucket_name, account_idcf-r2-jurisdictionDisables Sippy on this bucket.

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.
bucket_namestringThe R2 bucket name.
cf-r2-jurisdictionstring

SELECT examples​

Gets configuration for Sippy for an existing R2 bucket.

SELECT
destination,
enabled,
source
FROM cloudflare.r2.sippy
WHERE account_id = '{{ account_id }}' -- required
AND bucket_name = '{{ bucket_name }}' -- required
AND cf-r2-jurisdiction = '{{ cf-r2-jurisdiction }}'
;

REPLACE examples​

Sets configuration for Sippy for an existing R2 bucket.

REPLACE cloudflare.r2.sippy
SET
destination = '{{ destination }}',
source = '{{ source }}'
WHERE
account_id = '{{ account_id }}' --required
AND bucket_name = '{{ bucket_name }}' --required
AND cf-r2-jurisdiction = '{{ cf-r2-jurisdiction}}'
RETURNING
errors,
messages,
result,
success;

DELETE examples​

Disables Sippy on this bucket.

DELETE FROM cloudflare.r2.sippy
WHERE bucket_name = '{{ bucket_name }}' --required
AND account_id = '{{ account_id }}' --required
AND cf-r2-jurisdiction = '{{ cf-r2-jurisdiction }}'
;