15 configuration options · available in Rust, Java, Python, Node.js, Ruby, Go
import { Operator } from "opendal";
const operator = new Operator("azblob", {
container: "...",
});
import { Operator } from "opendal";
const operator = new Operator("azblob", {
// The root of Azblob service backend.
//
// All operations will happen under this root.
// root: "...",
// The container name of Azblob service backend.
container: "...",
// The endpoint of Azblob service backend.
//
// Endpoint must be full uri, e.g.
//
// - Azblob: `https://accountname.blob.core.windows.net`
// - Azurite: `http://127.0.0.1:10000/devstoreaccount1`
// endpoint: "...",
// The account name of Azblob service backend.
// account_name: "...",
// The account key of Azblob service backend.
// account_key: "...",
// The Base64-encoded AES-256 customer-provided encryption key.
//
// The key must decode to exactly 32 bytes. Building an operator returns
// `ConfigInvalid` for invalid Base64 or a different decoded length.
// encryption_key: "...",
// The encryption key sha256 of Azblob service backend.
// encryption_key_sha256: "...",
// The encryption algorithm of Azblob service backend.
// encryption_algorithm: "...",
// The sas token of Azblob service backend.
// sas_token: "...",
// The client id of the service principal for Microsoft Entra ID authentication.
// client_id: "...",
// The client secret of the service principal for Microsoft Entra ID authentication.
// client_secret: "...",
// The tenant id of the service principal for Microsoft Entra ID authentication.
// tenant_id: "...",
// The authority host of the service principal for Microsoft Entra ID authentication.
//
// Defaults to `https://login.microsoftonline.com`.
// authority_host: "...",
// Skip signature will skip loading credentials and signing requests.
// skip_signature: "true",
});
Every option is passed as a string key; OpenDAL parses it into the right type. For a map option, pass a string containing a JSON object whose values are strings, such as {"key":"value"}. Some services may require building the binding with the matching services-* feature enabled.
| Key | Type | Required | Description |
|---|---|---|---|
root | string | no | The root of Azblob service backend. All operations will happen under this root. |
container | string | yes | The container name of Azblob service backend. |
endpoint | string | no | The endpoint of Azblob service backend.
Endpoint must be full uri, e.g.
- Azblob: https://accountname.blob.core.windows.net
- Azurite: http://127.0.0.1:10000/devstoreaccount1 |
account_name | string | no | The account name of Azblob service backend. |
account_key | string | no | The account key of Azblob service backend. |
encryption_key | string | no | The Base64-encoded AES-256 customer-provided encryption key.
The key must decode to exactly 32 bytes. Building an operator returns
ConfigInvalid for invalid Base64 or a different decoded length. |
encryption_key_sha256 | string | no | The encryption key sha256 of Azblob service backend. |
encryption_algorithm | string | no | The encryption algorithm of Azblob service backend. |
sas_token | string | no | The sas token of Azblob service backend. |
client_id | string | no | The client id of the service principal for Microsoft Entra ID authentication. |
client_secret | string | no | The client secret of the service principal for Microsoft Entra ID authentication. |
tenant_id | string | no | The tenant id of the service principal for Microsoft Entra ID authentication. |
authority_host | string | no | The authority host of the service principal for Microsoft Entra ID authentication.
Defaults to https://login.microsoftonline.com. |
batch_max_operationsdeprecated | integer | no | Deprecated: Azblob delete batch capability is enabled by default with Azure Blob's 256-operation batch limit. Deprecated since 0.57.0: Azblob delete batch capability is enabled by default with Azure Blob's 256-operation batch limit. Use CapabilityOverrideLayer to override delete_max_size for specific endpoints. |
skip_signature | bool | no | Skip signature will skip loading credentials and signing requests. |
Entries reflect native capabilities declared by the azblob backend. Language bindings expose different subsets of options and may simulate operations client-side, and protocol-compatible endpoints may support only a subset of the declared features.
| Capability | Support | Description |
|---|---|---|
stat | Native | Indicates if the operator supports metadata retrieval operations. |
stat_with_if_match | Native | Indicates if conditional stat operations using If-Match are supported. |
stat_with_if_none_match | Native | Indicates if conditional stat operations using If-None-Match are supported. |
stat_with_if_modified_since | Native | Indicates if conditional stat operations using If-Modified-Since are supported. |
stat_with_if_unmodified_since | Native | Indicates if conditional stat operations using If-Unmodified-Since are supported. |
| Capability | Support | Description |
|---|---|---|
read | Native | Indicates if the operator supports read operations. |
read_with_if_match | Native | Indicates if conditional read operations using If-Match are supported. |
read_with_if_none_match | Native | Indicates if conditional read operations using If-None-Match are supported. |
read_with_if_modified_since | Native | Indicates if conditional read operations using If-Modified-Since are supported. |
read_with_if_unmodified_since | Native | Indicates if conditional read operations using If-Unmodified-Since are supported. |
read_with_override_content_disposition | Native | Indicates if Content-Disposition header override is supported during read operations. |
| Capability | Support | Description |
|---|---|---|
write | Native | Indicates if the operator supports write operations. |
write_can_multi | Native | Indicates if multiple write operations can be performed on the same object. |
write_can_empty | Native | Indicates if writing empty content is supported. |
write_can_append | Native | Indicates if append operations are supported. |
write_with_content_type | Native | Indicates if Content-Type can be specified during write operations. |
write_with_cache_control | Native | Indicates if Cache-Control can be specified during write operations. |
write_with_if_match | Native | Indicates if conditional write operations using If-Match are supported. |
write_with_if_none_match | Native | Indicates if conditional write operations using If-None-Match are supported. |
write_with_if_not_exists | Native | Indicates if write operations can be conditional on object non-existence. |
write_with_user_metadata | Native | Indicates if custom user metadata can be attached during write operations. |
write_with_checksum | Conditional Standard Azure Blob endpoints ( https://<account>.blob.core.windows.net) | Indicates if non-append writes support native verification with a checksum algorithm selected by the service. Verification may cover only individual upload requests, parts, or blocks. Support for caller-selected algorithms and full-object verification depends on the service and write mode. OpenDAL rejects unsupported explicit checksum requests before performing I/O. |
| Capability | Support | Description |
|---|---|---|
list | Native | Indicates if list operations are supported. |
list_with_recursive | Native | Indicates if recursive listing is supported. |
| Capability | Support | Description |
|---|---|---|
delete | Native | Indicates if delete operations are supported. |
delete_with_if_match | Native | Indicates if conditional delete operations using If-Match are supported. |
delete_with_if_none_match | Native | Indicates if conditional delete operations using If-None-Match are supported. |
delete_max_size | 256 | Maximum size supported for single delete operations. |
| Capability | Support | Description |
|---|---|---|
copy | Native | Indicates if copy operations are supported. |
copy_with_if_not_exists | Native | Indicates if conditional copy operations with if-not-exists are supported. |
copy_with_if_match | Native | Indicates if conditional copy operations with if-match are supported. |
copy_with_if_none_match | Native | Indicates if conditional copy operations with if-none-match are supported. |
copy_can_multi | Native | Indicates if copy operations can be split into multiple server-side tasks. |
copy_multi_max_size | 4,000 MiB | Maximum size supported for segmented copy tasks. |
copy_multi_min_size | 1 B | Minimum size required for segmented copy tasks. |
| Capability | Support | Description |
|---|---|---|
presign | Conditional Requires sas_token, a host-style endpoint with Shared Key, or explicit service principal credentials on a matching HTTPS Blob endpoint for reads, with skip_signature disabled | Indicates if presigned URL generation is supported. |
presign_read | Conditional Requires sas_token, a host-style endpoint with Shared Key, or explicit service principal credentials on a matching HTTPS Blob endpoint for reads, with skip_signature disabled | Indicates if presigned URLs for read operations are supported. |
presign_stat | Conditional Requires sas_token or a host-style endpoint with account_key (and account_name), with skip_signature disabled | Indicates if presigned URLs for stat operations are supported. |
presign_write | Conditional Requires sas_token or a host-style endpoint with account_key (and account_name), with skip_signature disabled | Indicates if presigned URLs for write operations are supported. |
| Capability | Support | Description |
|---|---|---|
shared | Native | Indicate if the operator supports shared access. |