GCP Cloud Storage
Cloud Storage is used to store arbitrary unstructured data like images, files, backups, etc. Aidbox offers integration with Cloud Storage to simplify upload and retrieval of data. All examples from this tutorial are executable in Aidbox REST console.
Create GcpServiceAccount
This resource contains credentials for Service Account that has write/read access to Cloud Storage.
Get URL for file upload
In order to get URL for file upload you should provide GcpServiceAccount id, bucket name to upload to and a filename. To upload data to the bucket, use PUT request with signed URL and provide file content in the request body.
Get URL for file download
Configuration options
You can provide "expiration" query param for both POST & GET queries. It corresponds to a X-Goog-Expires query param which sets URL expiration time in seconds.
Last updated