google-cloud-platform - 如何使用 Google Cloud SDK Shell 退出当前用户?

标签 google-cloud-platform

我引用这个page进行操作。

我有一个帐户,并使用 Google Cloud SDK Shell 运行以下命令,但 json 文件是我 friend 的帐户。我没有权限。

所以我想退出当前用户,并使用我 friend 的帐户登录,但现在如何退出当前用户并更改帐户登录?

Welcome to the Google Cloud SDK! Run "gcloud -h" to get the list of available commands.

C:\Program Files (x86)\Google\Cloud SDK>gcloud iam service-accounts create XXX ERROR: (gcloud.iam.service-accounts.create) The required property [project] is not currently set. You may set it for your current workspace by running:

$ gcloud config set project VALUE

or it can be set temporarily by the environment variable [CLOUDSDK_CORE_PROJECT]

C:\Program Files (x86)\Google\Cloud SDK>gcloud projects add-iam-policy-binding dynamic-return-XXX --member "serviceAccount:[email protected]" --role "roles/owner" ERROR: (gcloud.projects.add-iam-policy-binding) User [[email protected]] does not have permission to access project [dynamic-return-XXX:getIamPolicy] (or it may not exist): The caller does not have permission

C:\Program Files (x86)\Google\Cloud SDK>

最佳答案

现在我知道如何退出当前用户了。 命令是:

gcloud auth login

关于google-cloud-platform - 如何使用 Google Cloud SDK Shell 退出当前用户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50737357/

相关文章:

node.js - Coinbase API client.getAccount(...) 开始返回 : "Error: unable to get local issuer certificate"

node.js - 用于签署 JSON Web token 的 Google Cloud Key Management Service

node.js - 使用 Fluent-ffmpeg 将屏幕截图上传到谷歌云存储桶

google-cloud-platform - 无法为我的 Postgres Cloud SQL 实例启用私有(private) IP

ubuntu - 将 shell session 重新附加到在 Ubuntu 上运行的进程

google-cloud-platform - Cloud Dataproc 和其他 Google Cloud 产品的身份验证错误

kubernetes - Kubernetes集群从Google Container Engine中消失了

google-app-engine - Google App Engine 错误 : <gcloud. app.deploy> INVALID_ARGUMENT : The following quotas were exceeded:BACKEND_SERVICES (quota: 5, 使用:5 + 需要 1)

node.js - 使用 stdout/stderr 从 Node 进行 Stackdriver 日志记录

python-3.x - 如何使用 Google Cloud Function 将文件从 Cloud Storage 存储桶推送到实例中?