I try to create the first user for my instance of a Google Cloud SQL server.
The cURL-query I use is:
curl -X POST --header "Authorization: Bearer MY TOKEN" --header "Content-Type: application/json" https://www.googleapis.com/sql/v1beta4/projects/MY PROJECT/instances/MY INSTANCE/users --data "{'host': '%', 'name': 'MY USERNAME', 'password': 'MY PASSWORD'}"
The Google Cloud SQL API is activated for my project.
As response message I get:
"message": "Access Not Configured. Cloud SQL Administration API has not been used \in project 407408718192 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/sqladmin/overview?project=4074087XXXXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
The project ID I get back is not even my own.
Is this a bug or am I doing something wrong? Please let me know if you need any more information.
As shown in Juan Enrique Muñoz Zolotoochin's comment I needed to use my own credentials in the oAuth playground (Top right corner, the cogwheel)