Search code examples
google-cloud-platformgoogle-apigoogle-oauth

Manage GCP project credentials through API


I'm trying to list all my GCP projects information through API (REST). I can get basic information thanks to this API: https://cloud.google.com/resource-manager/docs/apis , but I would like to gather the credentials details for the projects.

enter image description here

I can retrieve Google services accounts, but no API Key or OAuth 2.0 Client IDs. I could not find the relevant API documentation page. I'm browsing the documentation https://cloud.google.com/apis#section-7 , but either it's not in here or I don't understand how to proceed. I'm working with the REST API as the idea is to gather those information through Google Apps Script, but if there is documentation / library on another language I would also have a look.


Solution

  • Client IDs can't be created or managed via API. An exception is if you're creating clients for IAP -- then you can use the IAP API.

    To manage API Keys, you can use the API Keys API.