Toggle menu

ListBlobs

Description

Lists all blobs/files within a given container in the Azure Blob Storage account. It supports filtering by prefix (which can also be used to target a specific directory), and can include metadata, snapshots, versions, deleted blobs, tags, and control whether to return only files in a directory specified by prefix (not recursively). Optionally, authentication details can be provided to select the correct storage account identifier.

Parameters

NameTypeComments
containerNameStringThe name of the container to list blobs from
prefixString, optionalThe prefix to filter blobs by (eg. a directory path)
includeMetadataBoolean, optionalWhether to include metadata in the response
includeSnapshotsBoolean, optionalWhether to include snapshots in the response
includeVersionsBoolean, optionalWhether to include versions in the response
includeDeletedBoolean, optionalWhether to include deleted blobs
includeTagsBoolean, optionalWhether to include tags in the response
getFilesInDirectoryOnlyBoolean, optionalIf true, only returns files directly in the specified directory as defined in the prefix parameter (non-recursive, uses Azure's delimiter/pseudo-directory feature) N.B. The prefix must have a trailing forward-slash e.g. "applications/"
timeoutMsNumber, optional

Timeout in milliseconds before aborting the operation (default is 20000)

authDetailsObject, optionalThe authDetails set in the worker configuration to use. If not set the request will use the default authDetails
authDetails.identifierStringThe identifier for the authentication details (used to select the correct connection string)

Example

{
    "id": "123",
    "jsonrpc": "2.0",
    "method": "listBlobs",
    "params": {
        "containerName": "applications",
        "prefix": "1111-2222-3333-4444/attachments/images/",
        "includeMetadata": true,
        "includeSnapshots": false,
        "includeVersions": false,
        "includeDeleted": false,
        "includeTags": true,
        "getFilesInDirectoryOnly": true,
        "timeoutMs": 30000,
        "authDetails": {
            "identifier": "my-storage-account"
        }
    }
}

Last modified on 22 July 2025