$ gcloud iam service-accounts list 列出项目角色的成员 $ gcloud projects get-iam-policy [project] 将用户添加/影响到一个角色中 $ gcloud projects add-iam-policy-binding [project] \ --member="user:name@gmail.com" \ --role="roles/iam.serviceAccountUser" 删除用户: $ gcloud projects remove...
$ gcloud iam list-grantable-roles [resource] Create a custom role for a organization or project $ gcloud iam roles create [role_name] --[organization|project] [organization|project_id] --file [path/to/role.yaml] Create a service account for a project $ gcloud iam service-accounts create [...
在现有(长时间运行的)虚拟机上,如果我这样做:我看到项目的默认服务帐户。但是,如果我在新创建的VM上执行相同的操作,则会得到一个错误:ERROR: (gcloud.iam.service-accounts.list最初的虚拟机</e 浏览0提问于2020-11-28得票数 0 2回答 为什么我的google云计算实例总是意外地重新启动? 帮助!帮助!帮助! 浏览0...
激活Service Account: $ gcloud auth activate-service-account admin-for-all@pkslow.iam.gserviceaccount.com --key-file=${GOOGLE_APPLICATION_CREDENTIALS} 设置SDK的项目ID: $ gcloud config set project pkslow 检查一下设置是否正确: $ gcloud auth list Credentialed Accounts ACTIVE ACCOUNT * admin-for-al...
ERROR: (gcloud.iam.service-accounts.list) You do not currently have an active account selected. Please run: $ gcloud auth login to obtain new credentials, or if you have already logged in with a different account: $ gcloud config set account ACCOUNT to select an already authenticated account...
$ gcloud auth activate-service-account admin-for-all@pkslow.iam.gserviceaccount.com --key-file=${GOOGLE_APPLICATION_CREDENTIALS} 设置SDK的项目ID: $ gcloud configsetproject pkslow 检查一下设置是否正确: $ gcloud auth list Credentialed Accounts ...
$ gcloud auth list Credentialed Accounts ACTIVE ACCOUNT * admin-for-all@pkslow.iam.gserviceaccount.com To set the active account, run: $ gcloud config set account `ACCOUNT` $ gcloud config list [core] account = admin-for-all@pkslow.iam.gserviceaccount.com ...
$ gcloud auth activate-service-account admin-for-all@pkslow.iam.gserviceaccount.com --key-file=${GOOGLE_APPLICATION_CREDENTIALS} 设置SDK的项目ID: $ gcloud config set project pkslow 检查一下设置是否正确: $ gcloud auth list Credentialed Accounts ...
$ gcloud auth list Credentialed Accounts ACTIVE ACCOUNT * admin-for-all@pkslow.iam.gserviceaccount.com Tosetthe active account, run: $ gcloud configsetaccount`ACCOUNT`$ gcloud config list[core]account=admin-for-all@pkslow.iam.gserviceaccount.com ...
email ="admin-for-all@pkslow.iam.gserviceaccount.com"scopes =["cloud-platform"]}} 检查是否创建成功: $ gcloud compute instances list NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS pkslow-test us-west1-a e2-micro 10.138.0.6 34.83.138.xxx RUNNING ...