GCP无法禁用计算引擎

时间:2020-09-06 05:53:39

标签: google-cloud-platform service google-api google-compute-engine

要禁用项目的API,请执行以下操作:

  1. 转到Cloud Console API仪表板页面。
  2. 转到“ API仪表板”页面
  3. 单击“选择”以选择“云”项目。
  4. 要禁用的API旁边,单击“禁用”。

但是...错误...

[Could not turn off service, as it still has resources in use.] with failed services [compute.googleapis.com]

2 个答案:

答案 0 :(得分:2)

计算API远不止计算实例。查看gcloud命令(执行gcloud compute,然后执行两次TAB以完成自动完成建议)

guillaume_blaquiere@cloudshell:~$ gcloud compute
accelerator-types         disk-types                instance-templates        regions                   snapshots                 target-pools
addresses                 external-vpn-gateways     interconnects             reservations              sole-tenancy              target-ssl-proxies
backend-buckets           firewall-rules            machine-types             reset-windows-password    ssh                       target-tcp-proxies
backend-services          forwarding-rules          network-endpoint-groups   resource-policies         ssl-certificates          target-vpn-gateways
commitments               health-checks             networks                  routers                   ssl-policies              tpus
config-ssh                http-health-checks        operations                routes                    start-iap-tunnel          url-maps
connect-to-serial-port    https-health-checks       os-config                 scp                       target-grpc-proxies       vpn-gateways
copy-files                images                    os-login                  security-policies         target-http-proxies       vpn-tunnels
diagnose                  instance-groups           packet-mirrorings         shared-vpc                target-https-proxies      zones
disks                     instances                 project-info              sign-url                  target-instances

检查最重要的部分,例如磁盘,映像,快照,模板,MIG,VPN,共享的VPC,路由器,负载均衡器和VPN。

答案 1 :(得分:0)

请再次确认您是否仍在运行GCE实例,如果是这样,请先停止该实例。