5.2.5 Process one or more files from Azure Blob storage units

Title

Process one or more files from Azure Blob storage units

URL Path

/api/file/process/azureblob

Method

POST

Summary

Download individual files from storage for processing with MetaDefender Core technologies. For example, a third-party application detects newly uploaded files to Azure Blob storage and sends them to MetaDefender for Secure Storage.
note

Please note that the archived blobs could not be processed.

HTTP Headers

Authorization

required

Bearer <JWT>

Sample HTTP body

{
"StorageName": "My Storage",
"Items": [
{
"FilePath": "test/picture.jpeg",
"ContainerName": "container1"
},
{
"FilePath": "test/file.txt",
"ContainerName": "container2"
}
]
}

Description of request

StorageName

The name of the storage unit containing the files

string value

Items

Array of objects that contain the FilePath of the file

array of objects

Items[].FilePath

The full path of the file

string value

Items[].ContainerName

The name of the container were the file is placed

string value

Request errors

400 Bad Request

Invalid HTTP request

401 Unauthorized

Unauthorized HTTP request

404 Not Found

The requested resource could not be found

500 Internal Server Error

Server is temporarily unavailable

Response

Example of a successful request:

{
"FileIds": [
"5d7a33198b0a56f2b9c3dbb3",
"5d7a33198b0a56f2b9c3dbb4"
],
"ResponseKey": "STARTED_PROCESSING_FILE",
"ResponseMessage": "Started processing file"
}

Description of response

FileIds

Array of unique file identifiers

A list of generated IDs for the requested files that can be used to query results at a later time

ResponseKey

Response message key

A message key that can be used for internalization

ResponseMessage

Response message

A message describing the result of the request