I'm developing an application locally(python), I want to list the details of all the projects & their instances.
In order to perform this, I have generated application_default_credentials.json
file by executing gcloud auth application-default login
command, by using this file I can list all of my projects & their instances. But
- Is there any alternate way to generate this
application_default_credentials.json
file? If YES can you please show me one example for the same? - Instead of this file Is there any keys (like secret_id/secret_token..) to get details of all projects & their resources?
- The file
application_default_credentials.json
has client_id, client_secret & refresh_token. Is it possible to generate these keys inAPI's & Services
section in GCP?
(I have 3 projects & each project has 3 instances, I just wanted to collect details of all the projects & their instances locally)