Toggle menu

FilestoreToBlobStorage

Description

Downloads a file from the filestore service using its identifier and uploads it to a specified container in Azure Blob Storage. It supports optional metadata and API key authentication for the filestore.

Parameters

NameTypeComments
containerNameStringThe name of the container that will contain the blob
blobNameString, optionalThe name of the blob when it arrives in Blob Storage. If not provided, the blob name will default to the file name as it exists in the filestore. N.B. If using pseudo-directories, the full path should defined here eg. "applications/1111-2222-3333-4444/attachments/images/my-image.jpg"
filestoreIdStringThe identifier of the file in the filestore
filestoreApiKeyString, optionalThe API key for the filestore, if required
metadataObject, optionalMetadata to associate with the blob in Azure Blob Storage
tagsObject, optionalTags to associate with the blob in Azure Blob Storage
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": "filestoreToBlobStorage",
    "params": {
        "containerName": "applications",
        "blobName": "1111-2222-3333-4444/attachments/images/my-image.jpg",
        "filestoreId": "00000000-0000-0000-0000-000000000000",
        "metadata": { "fileUploaded": "2025-04-01T11:00:00.000Z" },
        "timeoutMs": 30000,
        "authDetails": {
            "identifier": "my-storage-account"
        }
    }
}

Last modified on 22 July 2025