首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >gcutil getproject返回资源未找到

gcutil getproject返回资源未找到
EN

Stack Overflow用户
提问于 2014-05-28 13:21:33
回答 2查看 200关注 0票数 0

有没有人能帮我解决这个错误?我已经用谷歌搜索了资源,没有发现错误,并阅读了很多答案,但所有的答案对我都没有帮助。喜欢启用账单的方法,是的,我已经启用了,但没有帮助。

谢谢,

土拨鼠

marmot@localhost项目$ gcloud auth login

在浏览器中转到以下链接:

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

输入验证码: 4/ZUSX5HmO0ivg0B9iJwBM1WNJ9tHd.wpOolknAFYcSXE-sT2ZLcbSVP_2BjAI

您现在以weisheng.chen@gmail.com身份登录。

您当前的项目为None。您可以通过运行以下命令来更改此设置:

$ gcloud配置集项目

marmot@localhost项目$ gcloud配置集项目marmot-helloworld-1

marmot@localhost项目$ gcutil getproject --project=marmot-helloworld-1 --cache_flag_values --dump_request_response

信息:--request-start--

信息:-标题-开始-

INFO: accept-encoding: gzip,deflate

信息:接受: application/json

信息:用户代理: google-api-python-client/1.0

信息:-标题-结束-

信息:-路径-参数-开始-

信息:项目: marmot-helloworld-1

信息:-路径-参数-结束-

信息:正文:无

信息:查询:?alt=json

信息:--request-end--

信息:请求的URL:https://www.googleapis.com/compute/v1/projects/marmot-helloworld-1?alt=json

错误:找不到资源'projects/marmot-helloworld-1‘

marmot@localhost项目$ uname -a

x86_64 localhost.localdomain 3.14.2-200.fc20.x86_64 #1 SMP Mon Apr 28 14:40:57 UTC 2014 x86_64 GNU/Linux

EN

回答 2

Stack Overflow用户

发布于 2014-09-25 17:28:29

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

手动:

访问Developers Console.

  • Select项目'marmot-helloworld-1

  • Click on‘
  1. 启用以文本‘
    1. Engine’开头的API

自动:

在'Compute'->'Compute Engine'->'VM instances'上访问Developers Console.

  • Select 'marmot-helloworld-1

  • Click

您需要在第一次执行此操作,之后您将能够运行该命令并获得适当的信息。

票数 0
EN

Stack Overflow用户

发布于 2018-01-21 01:50:07

更新: gcutil已弃用。

有关从gcutil过渡到gcloud计算的信息,请参考此documentation。此外,有关gcloud命令的更多参考,请查看此public documentation link

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23903345

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档