如何自己命名servingURL?

How to name a servingURL myself?(如何自己命名servingURL?)

本文介绍了如何自己命名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.

这篇关于如何自己命名servingURL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:如何自己命名servingURL?

基础教程推荐