0
votes

In the past I had used Images API for that. But the blobstore and images APIs are available only within the App Engine runtime environment. Now I use google compute engine and I want to create serving url for the images uploaded to google cloud storage. How to do that? Is it possible images to be directly served from google cloud storage?

1
If I understand correctly, you want to use Custom images that you have stored in a Bucket in GCE in order to create VMs based on that custom (uploaded image). Is this correct?grimmjow_sms
Also, The python tag is because you are using a GCP library?grimmjow_sms
I want url_to_jpeg_from_gc_storage. I don't want to create VMs based on OS image. The python tag is because I use Google client python library.makkasi

1 Answers

3
votes

There are 2 possible solutions, the first one could be use Signed URLs which gives time-limited resource access to anyone in possession of the URL.

The second option is use Request endpoints (example : https://storage.googleapis.com/[BUCKET_NAME]/[OBJECT_NAME]). Something important to mention is that you need to grant the correct roles to the bucket in order to access it.