Skip to main content

azblob

15 configuration options · available in Rust, Java, Python, Node.js, Ruby, Go

Quick start
import { Operator } from "opendal";

const operator = new Operator("azblob", {
container: "...",
});
All configuration options (copy & trim)
Full reference
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.

Configuration reference​

General15
KeyTypeRequiredDescription
rootstringnoThe root of Azblob service backend. All operations will happen under this root.
containerstringyesThe container name of Azblob service backend.
endpointstringnoThe 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_namestringnoThe account name of Azblob service backend.
account_keystringnoThe account key of Azblob service backend.
encryption_keystringnoThe 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_sha256stringnoThe encryption key sha256 of Azblob service backend.
encryption_algorithmstringnoThe encryption algorithm of Azblob service backend.
sas_tokenstringnoThe sas token of Azblob service backend.
client_idstringnoThe client id of the service principal for Microsoft Entra ID authentication.
client_secretstringnoThe client secret of the service principal for Microsoft Entra ID authentication.
tenant_idstringnoThe tenant id of the service principal for Microsoft Entra ID authentication.
authority_hoststringnoThe authority host of the service principal for Microsoft Entra ID authentication. Defaults to https://login.microsoftonline.com.
batch_max_operationsdeprecatedintegernoDeprecated: 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_signatureboolnoSkip 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.

Stat5
CapabilitySupportDescription
stat NativeIndicates if the operator supports metadata retrieval operations.
stat_with_if_match NativeIndicates if conditional stat operations using If-Match are supported.
stat_with_if_none_match NativeIndicates if conditional stat operations using If-None-Match are supported.
stat_with_if_modified_since NativeIndicates if conditional stat operations using If-Modified-Since are supported.
stat_with_if_unmodified_since NativeIndicates if conditional stat operations using If-Unmodified-Since are supported.
Read6
CapabilitySupportDescription
read NativeIndicates if the operator supports read operations.
read_with_if_match NativeIndicates if conditional read operations using If-Match are supported.
read_with_if_none_match NativeIndicates if conditional read operations using If-None-Match are supported.
read_with_if_modified_since NativeIndicates if conditional read operations using If-Modified-Since are supported.
read_with_if_unmodified_since NativeIndicates if conditional read operations using If-Unmodified-Since are supported.
read_with_override_content_disposition NativeIndicates if Content-Disposition header override is supported during read operations.
Write11
CapabilitySupportDescription
write NativeIndicates if the operator supports write operations.
write_can_multi NativeIndicates if multiple write operations can be performed on the same object.
write_can_empty NativeIndicates if writing empty content is supported.
write_can_append NativeIndicates if append operations are supported.
write_with_content_type NativeIndicates if Content-Type can be specified during write operations.
write_with_cache_control NativeIndicates if Cache-Control can be specified during write operations.
write_with_if_match NativeIndicates if conditional write operations using If-Match are supported.
write_with_if_none_match NativeIndicates if conditional write operations using If-None-Match are supported.
write_with_if_not_exists NativeIndicates if write operations can be conditional on object non-existence.
write_with_user_metadata NativeIndicates 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.
List2
CapabilitySupportDescription
list NativeIndicates if list operations are supported.
list_with_recursive NativeIndicates if recursive listing is supported.
Delete4
CapabilitySupportDescription
delete NativeIndicates if delete operations are supported.
delete_with_if_match NativeIndicates if conditional delete operations using If-Match are supported.
delete_with_if_none_match NativeIndicates if conditional delete operations using If-None-Match are supported.
delete_max_size
256
Maximum size supported for single delete operations.
Copy7
CapabilitySupportDescription
copy NativeIndicates if copy operations are supported.
copy_with_if_not_exists NativeIndicates if conditional copy operations with if-not-exists are supported.
copy_with_if_match NativeIndicates if conditional copy operations with if-match are supported.
copy_with_if_none_match NativeIndicates if conditional copy operations with if-none-match are supported.
copy_can_multi NativeIndicates 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.
Presign4
CapabilitySupportDescription
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.
Other1
CapabilitySupportDescription
shared NativeIndicate if the operator supports shared access.