How to use OAuth2.0 to authorize Google Container Engine APIs

4/22/2015

I am trying to make a call using the Google Container Engine API via my browser. I have created both a client ID and the public API access key.

When I try to use the public API access key, I always get unuauthorized:

https://www.googleapis.com/container/v1beta1/projects/cohesive-feat-92204/clusters?fields=clusters%2FmasterAuth&key=XXXXXXXXXXXXXXX (where XXXXX... is my key)

Is there a document that describes all the required values for the call? How you specify the client ID and the client secret etc...where you put in the scope, etc...

This link https://cloud.google.com/container-engine/docs/v1beta1/libraries gives me a 404

-- Erin Boyd
containers
google-kubernetes-engine
kubernetes

1 Answer

4/22/2015

This is the same question as Google Container Engine REST API Authorization and the answer is that a public API access key cannot be used to access the Google Container Engine API.

-- Robert Bailey
Source: StackOverflow