如何挂起/恢复GCE VM [英] How to suspend/resume GCE VM

查看:57
本文介绍了如何挂起/恢复GCE VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要具有挂起/恢复GCE VM的能力,以优化对计算引擎资源的使用。
cloud
现在,此功能在gcloud alpha中可用:
gcloud alpha计算实例挂起INSTANCE_NAMES [INSTANCE_NAMES…] [--async] [-discard-local-ssd] [- zone = ZONE] [GCLOUD_WIDE_FLAG…]

we need the ability to suspend/resume GCE VMs to optimize use of compute engine resources. cloud Right now this feature is available in gcloud alpha: gcloud alpha compute instances suspend INSTANCE_NAMES [INSTANCE_NAMES …] [--async][--discard-local-ssd] [--zone=ZONE] [GCLOUD_WIDE_FLAG …]

但是当我执行此命令时,出现以下错误:
错误消息
HTTP错误400:无效的资源使用:挂起实例功能不适用于该项目。
谁能建议我暂停Google Cloud VM的方法?
从错误中得知,我了解到我们需要一些权限才能在项目中包括功能。有人可以建议我在该项目中包括挂起实例功能吗?

But when I executed this command I got this error: error-message HTTPError 400: Invalid Resource Usage:'Suspend Instance Feature is not available for this project.' Can anyone suggest me ways to suspend Google cloud vm? From the error stated, I get an understanding that we need some permission to include feature in the project.Can anyone suggest me ways to include Suspend Instance Feature in this project?

推荐答案

您需要申请对此功能的早期访问,并在Google中注册您的项目。与 Google支持联系。在请求中包括您的电子邮件地址,项目ID以及如何使用API​​。

You need to apply for early access for this feature and have your project registered with Google. Contact Google Support. Include your email address, the project ID in your request and how you will be using the API.

不要期望快速响应。我的请求有时需要数周才能获得批准。

Do not expect a rapid response. My requests sometimes takes several weeks for approval.

这篇关于如何挂起/恢复GCE VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆