Configure Azure Blob Storage
User
Configure Azure Blob Storage
Configure Azure Blob Storage for your downloads
POST
Configure Azure Blob Storage
Overview
Set up Azure Blob Storage for uploaded videos. Authenticate with either an account key or a SAS token. Credentials are verified before saving.Header Parameters
string
required
Your API key for authentication
Request Body
string
required
Azure Storage Account name
string
required
Blob container name
string
Storage Account access key (Base64 encoded). Required if
sas_token is not provided.string
SAS token for authentication. Required if
account_key is not provided.string
Optional folder prefix for organizing uploads (e.g.,
downloads/2024/)string
default:"videos"
Base folder name for uploaded files. Defaults to
videos if not specified. Set to a custom value to change the top-level folder where files are stored (e.g., downloads, media).Response
string
Success confirmation message
string
Storage provider type:
blobstring
The configured container name
string
The configured folder prefix (if provided)
Examples
Success Response
Error Responses
Verification Process
When you submit storage configuration, Tornado:- Validates that either
account_keyorsas_tokenis provided - Creates a storage client with your credentials
- Attempts to upload a small test file (
verify_credentials.txt) - Deletes the test file
- If successful, saves the configuration encrypted
Required SAS Permissions
When using a SAS token, ensure these permissions are enabled:- Read (r) - For generating download URLs
- Write (w) - For uploading files
- Delete (d) - For cleanup operations
- List (l) - For validation
