【发布时间】:2020-11-21 21:44:01
【问题描述】:
我的 gcloud 工具默认使用 us-west1,但是当我创建队列并尝试通过 java 和 api 使用时,我收到此错误
"Location 'us-west1' is not a valid location. Use ListLocations to list valid locations.",
当我尝试使用 gcloud 列出位置时,我得到了这个
Deans-The-Machine dean$ gcloud tasks queues list
QUEUE_NAME STATE MAX_NUM_OF_TASKS MAX_RATE (/sec) MAX_ATTEMPTS
staging-scrapers RUNNING 25 2.0 3
如何使用 gcloud 命令行获取位置列表?
谢谢, 院长
【问题讨论】:
-
使用命令
gcloud tasks locations list查看支持的位置。使用us-east4。 cloud.google.com/sdk/gcloud/reference/tasks/locations/list -
@JohnHanley 该命令为我列出了一个且“仅”一个位置 us-central1 。为什么只有一个位置?这似乎很奇怪。我所有的服务器都在 us-west1 中运行,所以我想在那里运行谷歌云任务。
标签: google-cloud-platform google-cloud-tasks