Google cloud platform “未被认可的论点”--删除保护“;对于gcloud.compute.instances.update
我已经在Google云引擎上设置了一个一键式的LAMP堆栈,它创建了一个我想要的VM实例 但是,每当我尝试使用gcloud命令行工具运行命令时,都会出现以下错误: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 有人用过这个吗?文档中有错误吗 任何帮助都将不胜感激 谢谢 您能发布您正在运行的确切命令吗?因为我尝试了文档中的两个命令,并且在这两种情况下我都成功地设置了保护
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,我喜欢这个设计,做得好!