需要将项目的使用信息导出到具有私有访问权限和所选标准策略的存储桶中。anuradha_natarajan@cloudshell:~ (project-name)$ gcloud beta compute project-info set-usage-bucket—bucket=bucketname错误:(gcloud.beta. computer .project-info.set-usage-bucket) unknown collection for [bucketname]
无法通过console和cli保存此配置,抛出上述错误。期望从控制台
保存配置你犯了一个语法错误(你错过了gs://)。文档显示了正确的语法https://cloud.google.com/sdk/gcloud/reference/compute/project-info/set-usage-bucket
gcloud config set project $MY_PROJECT
gcloud beta compute project-info set-usage-bucket --bucket gs://$MY_BUCKET