google-cloud-ml-engine

Do GCP ML Engine online predictions support API keys?


I'm attempting to make online predictions using https://ml.googleapis.com/v1/projects/<project>/models/<model>/versions/<version>:predict?key=<mykey>

I created a service account with full ML Engine Admin access, then generated an unrestricted API key. Many of Google's online docs mention ?key= as a valid auth method for their APIs. Can anyone confirm that this is supported by ML Engine today?

I was able to make the same request using Authorization: Bearer <access token> with my own personal access token, but I do not want to do that. Additionally, the request will ultimately be made via PHP, and the client libraries for PHP currently do not support ML Engine yet.

Thanks


Solution

  • It's not supported by CMLE Online Prediction. There is a list of supported GCP services here: https://cloud.google.com/docs/authentication/api-keys