2
votes

Using gcloud alpha services It's now perfectly possible to generate keys programatically:

gcloud alpha services api-keys create

I can then enable the Maps JavaScript API using

gcloud services enable maps-backend.googleapis.com

At this point I need to set some HTTP referrer restrictions on that key but the services api-keys update command only updates an API key's metadata.

How do I proceed?

1

1 Answers