Insufficient authentication scopes error using Google API

前端 未结 2 556
野的像风
野的像风 2020-12-19 01:18

I set up Google SDK to use Google API with Application Default Credentials. For my local machine, created a credentials json file and set its path as GOOGLE_APPLICATIO

2条回答
  •  無奈伤痛
    2020-12-19 01:36

    It is possible now. Your instance must be stopped and then it can have its scope list changed from the console in the edit vm page, or in the SDK by using :

    gcloud compute instances stop [vmname] gcloud beta compute instances set-scopes [vmname] --scopes="[scopes list]"

    Just be aware that with the SDK way, the second command will reset with the scopes in the list. It is not currently available the ability to only append a new scope.

提交回复
热议问题