0
votes

What information can you retrieve from Google's API Key created through Google GCP Console.

GCP Console -> Menu -> APIs & Services -> Credentials -> API Key

Is there a way on the backend to get the project id associated to this query string ex: key=apiKey?
or
list all API keys for a GCP project using some googleAPI?
or
something like: gcloud iam api-keys list?

Thank you.

1

1 Answers

3
votes

What information can you retrieve from Google's API Key created through Google GCP Console.

You can see information such as:

  • API Key
  • Creation date
  • Created by
  • Total usage
  • Application Restrictions
  • Website Restrictions

Is there a way on the backend to get the project id associated to this query string ex: key=apiKey?

Neither end-users nor GCP IAM members can see anything regarding the API Key except via the GCP Console.

list all API keys for a GCP project using some googleAPI?

A public API has not been published for API Keys.

something like: gcloud iam api-keys list?

No tools have been published that display information regarding API Keys.