Skip to content

azure.storage.list

azure · scripts/+azure/+storage/list.m

: result = azure.storage.list (container)
: result = azure.storage.list (container, …)

List blobs in an Azure Blob Storage container.

azure.storage.list (container) returns a struct array where each element describes one blob in the container. The fields are:

Name

Blob name (character vector).

Properties.LastModified

Last-modified timestamp (ISO 8601 character vector).

Properties.Etag

ETag for the blob.

Properties.ContentLength

Size in bytes (double).

Properties.ContentType

Content-Type header value.

Properties.Copy.Status

Copy status string (if copying).

Properties.LeaseState

Lease state string.

Properties.LeaseStatus

Lease status string.

Properties.ServerEncrypted

true if the blob is server-encrypted.

Credentials and options are the same as for azure.storage.read.

Example:

  blobs = azure.storage.list ("mycontainer", ...
    "AccountName", "mystorage", "AccountKey", "abc123==")