【发布时间】:2020-05-26 16:03:06
【问题描述】:
我正在尝试在 Google Collaboratory 上获取实例元数据。我有兴趣找出计算区域。
具体来说,在 Google Collaboratory 的托管运行时,我尝试运行以下命令,但它们超时。
!curl "http://metadata.google.internal/computeMetadata/v1/?recursive=true&alt=json" -H "Metadata-Flavor: Google"
curl: (7) Failed to connect to metadata.google.internal port 80: Connection timed out
!curl "http://169.254.169.254/computeMetadata/v1/instance/?recursive=true&alt=json" -H "Metadata-Flavor: Google"
curl: (7) Failed to connect to 169.254.169.254 port 80: Connection timed out
是我做错了什么,还是有其他解决方法?
谢谢!
【问题讨论】:
-
您是指 AI Platform Notebooks 而不是 Colab?
标签: google-cloud-platform gcp-ai-platform-notebook