Skip to main content

binary_storage

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

Overview

Namebinary_storage
TypeResource
Idcloudflare.cloudforce_one.binary_storage

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertaccount_id, file
getexecaccount_id, hash

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.
hashstringhash of the binary

INSERT examples

No description available.

INSERT INTO cloudflare.cloudforce_one.binary_storage (
file,
account_id
)
SELECT
'{{ file }}' /* required */,
'{{ account_id }}'
RETURNING
content_type,
md5,
sha1,
sha256
;

Lifecycle Methods

Returns file information

EXEC cloudflare.cloudforce_one.binary_storage.get
@account_id='{{ account_id }}' --required,
@hash='{{ hash }}' --required
;