Hi All,
Can anyone please confirm how to do google cloud compute engine REST api authentication using PowerShell.
I have installed SDK but that SDK glcloud init command is selection base. hence trying compute endpoint api but not getting how to call compute api
Thanks in advance
Solved! Go to Solution.
Hello Suyashm,
This documentation may help in your concern.
Thanks Dionv,
I am using same and able to connect google cloud compute api.
Thanks for help.
one more question.
Any alternative to gcloud init or gcloud auth login as when i hit this command its open browser then manually need to add username and password i have tried no browser as well. any other way we can connect to gcloud like azure cloud (connect-azaccount).
Thanks,
Suyash
Howdy Suyash, my understanding is that in order to use any of the gcloud commands, you need to be authenticated so that when the request is sent from gcloud to Google Cloud, Google Cloud knows (and trusts) that you are who you claim to be. This means that you will need some authentication. I believe that when you "gcloud auth login" an OAuth token and renewal token are saved to local disk and you won't have to login again. Are you trying to prevent from ever logging in? An alternative to logging in with a userid/password (human) is to authenticate as a service account. I believe you can then download a credentials files for the service account and authenticate using that identity. Maybe if you can post more details of what you would like to achieve we can further research and see if anything new comes to mind.