11 configuration options · available in Rust, Python, Node.js, Java
use opendal::Operator;
let op = Operator::via_iter("azdls", [
("filesystem".to_string(), "...".to_string()),
])?;
use opendal::Operator;
let op = Operator::via_iter("azdls", [
// Root of this backend.
// ("root".to_string(), "...".to_string()),
// Filesystem name of this backend.
("filesystem".to_string(), "...".to_string()),
// Endpoint of this backend.
// ("endpoint".to_string(), "...".to_string()),
// Account name of this backend.
// ("account_name".to_string(), "...".to_string()),
// Account key of this backend.
// - required for shared_key authentication
// ("account_key".to_string(), "...".to_string()),
// client_secret
// The client secret of the service principal.
// - required for client_credentials authentication
// ("client_secret".to_string(), "...".to_string()),
// tenant_id
// The tenant id of the service principal.
// - required for client_credentials authentication
// ("tenant_id".to_string(), "...".to_string()),
// client_id
// The client id of the service principal.
// - required for client_credentials authentication
// ("client_id".to_string(), "...".to_string()),
// sas_token
// The shared access signature token.
// - required for sas authentication
// ("sas_token".to_string(), "...".to_string()),
// authority_host
// The authority host of the service principal.
// - required for client_credentials authentication
// - default value: `https://login.microsoftonline.com`
// ("authority_host".to_string(), "...".to_string()),
// Whether hierarchical namespace (HNS) is enabled for the storage account.
// When enabled, recursive deletion can use pagination to avoid timeouts on large directories.
// - default value: `false`
// ("enable_hns".to_string(), "true".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.
| Key | Type | Required | Description |
|---|---|---|---|
root | string | no | Root of this backend. |
filesystem | string | yes | Filesystem name of this backend. |
endpoint | string | no | Endpoint of this backend. |
account_name | string | no | Account name of this backend. |
account_key | string | no | Account key of this backend. - required for shared_key authentication |
client_secret | string | no | client_secret The client secret of the service principal. - required for client_credentials authentication |
tenant_id | string | no | tenant_id The tenant id of the service principal. - required for client_credentials authentication |
client_id | string | no | client_id The client id of the service principal. - required for client_credentials authentication |
sas_token | string | no | sas_token The shared access signature token. - required for sas authentication |
authority_host | string | no | authority_host
The authority host of the service principal.
- required for client_credentials authentication
- default value: https://login.microsoftonline.com |
enable_hns | bool | no | Whether hierarchical namespace (HNS) is enabled for the storage account.
When enabled, recursive deletion can use pagination to avoid timeouts on large directories.
- default value: false |