google-cloud-platformgoogle-cloud-sql

API [sqladmin.googleapis.com] not enabled on project [1234].


When running: gcloud sql instances create example --tier=db-n1-standard-1 --region=europe-west1 I get the error in the title, though I'm not too sure why as I do have the 'Google Cloud SQL API' enabled.

What is the cause of this error?


Solution

  • It seems it takes a while (a few minutes) a for the change to propagate.

    For posterity, it is also possible that the API has not been enabled, which in that case you'd want to enable it here: https://cloud.google.com/sql/docs/mysql/admin-api/#console.