programmatically enabling APIs

810 views
Skip to first unread message

dan farmer

unread,
Mar 30, 2017, 12:31:13 PM3/30/17
to gce-discussion
Sorry if this is covered elsewhere, I couldn't find the answer in various searches, etc. It may be obvious, and, if so, please send me to where ever to RTFM!

So we're spinning up GCE projects for various applications; of course we want to do so with scripts/cloud deployment manager so everything is automated in our CI/CD pipeline... I think we have just about everything figured out (hah!  But instances, networking, ACLs, firewalls, LBs, users, service accounts, kms, ami, all that jazz) with the exception of enabling APIs for a given project.

Obviously you can go the web UI, select the project, click on the enable API bit and so on. But is there a way to automated this?  I'm hoping there was perhaps YAAF (Yet Another Alpha Feature) I might get enabled for us or some other way I can achieve this... does anyone do this/know how?

Thanks!

dan

Faizan (Google Cloud Support)

unread,
Mar 30, 2017, 1:40:51 PM3/30/17
to gce-discussion
Hello Dan, 

For your use case, you can use "Google Service Management" [1] to manage the APIs. You can also use the beta version of the "gcloud" [2] command to enable the APIs.

I hope that helps.

Faizan

dan farmer

unread,
Mar 30, 2017, 1:50:26 PM3/30/17
to gce-discussion

Most excellent, thanks for the quick response!

-- d
Reply all
Reply to author
Forward
0 new messages