Last updated
Was this helpful?
Last updated
Was this helpful?
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.
This resource contains credentials for Service Account that has write/read access to Cloud Storage.
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.
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.