Skip to main content

cloudflare-kv

5 configuration options · available in Rust, Python

Quick start
use opendal::Operator;

let op = Operator::via_iter("cloudflare-kv", [
])?;
All configuration options (copy & trim)
Full reference
use opendal::Operator;

let op = Operator::via_iter("cloudflare-kv", [
// The token used to authenticate with CloudFlare.
// ("api_token".to_string(), "...".to_string()),

// The account ID used to authenticate with CloudFlare. Used as URI path parameter.
// ("account_id".to_string(), "...".to_string()),

// The namespace ID. Used as URI path parameter.
// ("namespace_id".to_string(), "...".to_string()),

// The default ttl for write operations.
// ("default_ttl".to_string(), "10s".to_string()),

// Root within this backend.
// ("root".to_string(), "...".to_string()),

])?;

Every option is passed as a string key; OpenDAL parses it into the right type. Some services may require building the binding with the matching services-* feature enabled.

Configuration reference

General5
KeyTypeRequiredDescription
api_tokenstringnoThe token used to authenticate with CloudFlare.
account_idstringnoThe account ID used to authenticate with CloudFlare. Used as URI path parameter.
namespace_idstringnoThe namespace ID. Used as URI path parameter.
default_ttldurationnoThe default ttl for write operations.
rootstringnoRoot within this backend.