要禁用项目的API,请执行以下操作:
但是...错误...
[Could not turn off service, as it still has resources in use.] with failed services [compute.googleapis.com]
答案 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实例,如果是这样,请先停止该实例。