0

Does anyone can help me on this error? I have search the resource not found error with google and read a lot of answers but all the answer not help for me. Like to enable the bill method, yes I have enabled it but not help.

Thannks,
Marmot
[marmot@localhost Projects]$ gcloud auth login
Go to the following link in your browser:

https://accounts.google.com/o/oauth2/auth?redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&prompt=select_account&response_type=code&client_id=32555940559.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fbigquery+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdevstorage.full_control+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fndev.cloudman+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fsqlservice.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fprediction+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fprojecthosting&access_type=offline


Enter verification code: 4/ZUSX5HmO0ivg0B9iJwBM1WNJ9tHd.wpOolknAFYcSXE-sT2ZLcbSVP_2BjAI

You are now logged in as [weisheng.chen@gmail.com].
Your current project is [None]. You can change this setting by running:
$ gcloud config set project
[marmot@localhost Projects]$ gcloud config set project marmot-helloworld-1
[marmot@localhost Projects]$ gcutil getproject --project=marmot-helloworld-1 --cache_flag_values --dump_request_response
INFO: --request-start--
INFO: -headers-start-
INFO: accept-encoding: gzip, deflate
INFO: accept: application/json
INFO: user-agent: google-api-python-client/1.0
INFO: -headers-end-
INFO: -path-parameters-start-
INFO: project: marmot-helloworld-1
INFO: -path-parameters-end-
INFO: body: None
INFO: query: ?alt=json
INFO: --request-end--
INFO: URL being requested: https://www.googleapis.com/compute/v1/projects/marmot-helloworld-1?alt=json
Error: The resource 'projects/marmot-helloworld-1' was not found
[marmot@localhost Projects]$ uname -a
Linux localhost.localdomain 3.14.2-200.fc20.x86_64 #1 SMP Mon Apr 28 14:40:57 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

4

2 回答 2

0

该命令用于获取有关您正在使用的 Google Compute Engine 资源的所有信息。如果您想使用该命令,则需要启用 Compute Engine API,您可以手动或自动执行此操作。

手动:

  1. 访问开发者控制台
  2. 选择项目'marmot-helloworld-1
  3. 点击“APIs & auth”
  4. 启用以文本“Google Compute Engine”开头的 API

自动地:

  1. 访问开发者控制台
  2. 选择项目'marmot-helloworld-1
  3. 点击“计算”->“计算引擎”->“虚拟机实例”

您需要第一次执行此操作,之后您将能够运行该命令并获取相应的信息。

于 2014-09-25T09:28:28.723 回答
0

更新:不推荐使用 gcutil。

要从 gcutil 过渡到 gcloud compute,请参阅此文档。此外,有关 gcloud 命令的更多参考,请查看此公共文档链接

于 2018-01-20T17:50:07.430 回答