Skip to main content

obs

6 configuration options · available in Rust, Python, Node.js, Java

Quick start
use opendal::Operator;

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

let op = Operator::via_iter("obs", [
// Root for obs.
// ("root".to_string(), "...".to_string()),

// Endpoint for obs.
// ("endpoint".to_string(), "...".to_string()),

// Access key id for obs.
// ("access_key_id".to_string(), "...".to_string()),

// Secret access key for obs.
// ("secret_access_key".to_string(), "...".to_string()),

// Bucket for obs.
// ("bucket".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

General6
KeyTypeRequiredDescription
rootstringnoRoot for obs.
endpointstringnoEndpoint for obs.
access_key_idstringnoAccess key id for obs.
secret_access_keystringnoSecret access key for obs.
bucketstringnoBucket for obs.
enable_versioningdeprecatedboolnoDeprecated: OBS versioning capability is not controlled by service config.
Deprecated since 0.57.0: OBS versioning capability is not controlled by this option and this option is no longer needed.