I have several API keys enabled for a project. I have a specific key and would to search my list of credentials to see who that key is assigned to.
Using cloud shell, I can get a list of keys associated with a project but this doesn't show the key values themselves, just the UID (alternatively I can get the URI as well).
Is there a way to do this using cloud shell or an API?
Hi,
I am not sure that this question is in the right topic. Answering your question, API keys in GCP aren't used for identification. As such they aren't associated with a credentials. This is just one of the method (not very secure) to allow execution of API calls. See the overview and other docs about its usage.
Hi @leoy What about giving customers an API key to access our own API solution hosted on GCP?
I know the key that's being used but want to find the customer (their name is listed under "Name" under Credentials in GCP.
The API keys are not a service and provide access only to Google APIs. To use API keys "to access our own API Soluition hosted on GCP" you will need to implement API keys inside your solution. As far as I am aware, there is no way to add any metadata to the key beside the key name. I would not recommend to store any confidential or commercial info in the name of any resource including API key.