如何自己命名servingURL?

我想从存储在 Google-CS 存储桶中的图像文件中获取服务 URL,该存储桶由我自己命名:

I want a servingURL out of a image-file stored in a Google-CS bucket, which is named by myself:

我想自己命名服务 URL.我有一个单独的微服务,它应该定义服务 URL 的名称.在这种情况下,我不必从 Google-AE 到我的微服务进行往返,因为微服务会处理授权.

I want to name the servingURL myself. I have a seperate microservice which should define the name of the servingURL. In that case I don't have to make a roundtrip from Google-AE to my microservice since the microservice handles the authorization.

有没有办法明确定义服务 URL 名称?

Is there a way to define a servingURL name explicit?

推荐答案

不要使用servingURL.直接获取图片:

Don't use a servingURL. Get images directly:

https://storage.googleapis.com/myBucket/avatar.png
https://storage.googleapis.com/myBucket/12345_avatar.png
https://storage.googleapis.com/myBucket/12345/avatar.png

或您用于存储图像的任何其他模式.

or any other pattern that you use for storing your images.

那么你就没有额外的往返了.

Then you have no extra roundtrips.

相关文章