最近,我通過Web控制檯或gcloud命令啓用「Google Container Engine API」後,未能在新的GCP項目上自動啓用「Google Compute Engine API」。因此,當我試圖通過API創建容器集羣時,我遇到了錯誤。響應中的錯誤消息如下所示。 Off-course,手動啓用「Google Compute Engine API」,可以緩解錯誤。啓用Google Container Engine API不會自動啓用Google Compute Engine API
Google Compute Engine:Access Not Configured。 Compute Engine API尚未在項目123456789012中使用,或者被禁用。通過訪問https://console.developers.google.com/apis/api/compute-component.googleapis.com/overview?project=123456789012啓用它,然後重試。如果您最近啓用了此API,請等待幾分鐘,以便將操作傳播到我們的系統並重試。
當我在2017-02-24沒有明確啓用「Google Compute Engine API」的情況下做同樣的操作時,它工作正常。 我不知道這是否意圖改變或API依賴管理的一些錯誤。
問候,
謝謝您的信息! –
的確,謝謝。 –