Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform “未被认可的论点”--删除保护“;对于gcloud.compute.instances.update_Google Cloud Platform_Google Compute Engine_Google Cloud Sdk - Fatal编程技术网

Google cloud platform “未被认可的论点”--删除保护“;对于gcloud.compute.instances.update

Google cloud platform “未被认可的论点”--删除保护“;对于gcloud.compute.instances.update,google-cloud-platform,google-compute-engine,google-cloud-sdk,Google Cloud Platform,Google Compute Engine,Google Cloud Sdk,我已经在Google云引擎上设置了一个一键式的LAMP堆栈,它创建了一个我想要的VM实例 但是,每当我尝试使用gcloud命令行工具运行命令时,都会出现以下错误: ERROR: (gcloud.compute.instances.update) unrecognized arguments: --deletion-protection 有人用过这个吗?文档中有错误吗 任何帮助都将不胜感激 谢谢 您能发布您正在运行的确切命令吗?因为我尝试了文档中的两个命令,并且在这两种情况下我都成功地设置了保护

我已经在Google云引擎上设置了一个一键式的LAMP堆栈,它创建了一个我想要的VM实例

但是,每当我尝试使用gcloud命令行工具运行命令时,都会出现以下错误:

ERROR: (gcloud.compute.instances.update) unrecognized arguments: --deletion-protection
有人用过这个吗?文档中有错误吗

任何帮助都将不胜感激


谢谢

您能发布您正在运行的确切命令吗?因为我尝试了文档中的两个命令,并且在这两种情况下我都成功地设置了保护:

gcloud compute instances create new-instance --deletion-protection

gcloud compute instances update instance-name --deletion-protection
另一方面,您正在使用的Google SDK的版本是什么(通过
gcloud version
检查)?我的是“谷歌云SDK 183.0.0”

您可以考虑更新它并重试:

gcloud components update

啊!我在这里犯了大罪,不是吗?只是需要升级谷歌SDK。谢谢这是常有的事,别担心!顺便说一下,我查看了你的网页www.nibnut.com,我喜欢这个设计,做得好!