gpt4 book ai didi

google-cloud-platform - 控制点 : instance listed via gcloud command but not described

转载 作者:行者123 更新时间:2023-12-02 16:52:16 26 4
gpt4 key购买 nike

以下怎么可能?

➢  gcloud compute instances list
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
my-instance-1 us-east4-a n1-standard-8 10.16.22.11 RUNNING
my-instance-2 us-east4-a n1-standard-8 10.16.22.12 RUNNING
my-instance-3 us-east4-a n1-standard-8 10.16.22.13 RUNNING
(.venv)
~/Workspace/staging-env-configs workablestg9 ✔ 1h40m
➢ gcloud compute instances describe my-instance-1
ERROR: (gcloud.compute.instances.describe) Could not fetch resource:
- The resource 'projects/my-project/zones/us-central1-b/instances/my-instance-1' was not found

(.venv)

最佳答案

如果您的实例在您的默认区域“us-central1-b”中运行,您可以简单地执行 gcloud compute instances describe <instance-name>但是,如果您的实例未在默认区域中运行,您还必须提供该区域,以便您执行以下操作:

gcloud compute instances describe my-instance-1 --zone us-east4-a

如果您查看输出:“The resource 'projects/my-project/zones/us-central1-b/instances/my-instance-1'”,您可以清楚地看到它在您的默认区域 us-central1 中查找-b

关于google-cloud-platform - 控制点 : instance listed via gcloud command but not described,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58029265/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com