I have various buckets in google cloud storage which is being created from my backend. I want to import these buckets to firebase. In firebase there is a option to import the google cloud buckets to firebase, but I want to automate these tasks because any number of buckets can be created in my app and I cannot go to firebase always and import the buckets to it. how to do this?
Yes there is REST API method.
POST https://firebasestorage.googleapis.com/v1beta/{bucket=projects/*/buckets/*}:addFirebase
Links a Google Cloud Storage bucket to a Firebase project.
source: https://firebase.google.com/docs/reference/rest/storage/rest/v1beta/projects.buckets/addFirebase
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.