Configure Google Cloud Storage
User
Configure Google Cloud Storage
Configure Google Cloud Storage for your downloads
POST
Configure Google Cloud Storage
Overview
Set up Google Cloud Storage for uploaded videos. Authenticate with a service account JSON key. Credentials are verified before saving.Header Parameters
Your API key for authentication
Request Body
Google Cloud project ID
GCS bucket name
Service account JSON credentials (as escaped string or Base64 encoded)
Optional folder prefix for organizing uploads (e.g.,
downloads/2024/)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
Success confirmation message
Storage provider type:
gcsThe configured bucket name
The configured folder prefix (if provided)
Examples
Success Response
Error Responses
Verification Process
When you submit storage configuration, Tornado:- Validates the request format and the service account JSON structure
- 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 GCS Permissions
The service account needs the Storage Object Admin role, which includes:storage.objects.createstorage.objects.deletestorage.objects.getstorage.objects.list
