gdcloud projects remove-iam-policy-binding

名稱

gdcloud projects remove-iam-policy-binding:從專案中移除成員的角色。

概要

gdcloud projects remove-iam-policy-binding PROJECT_ID [flags]

說明

從專案中移除成員的角色。成員可以是真人使用者或服務帳戶。

範例


To remove the role "pr-test-role" for user "test-user@example.com" with IdP prefix "fop" in project "iam-test", run:

    gdcloud projects remove-iam-policy-binding iam-test --role=pr-test-role --member=user:fop-test-user@example.com

To remove the role "pr-test-role" for service account "test-sa" of project "test-sa-project" in the project "iam-test", run:

    gdcloud projects remove-iam-policy-binding iam-test --role=pr-test-role --member=serviceAccount:test-sa-project:test-sa

必要標記

      --member string   Member to remove the binding for, defined by either user:EMAIL or serviceAccount:SERVICE_ACCOUNT_PROJECT:SERVICE_ACCOUNT_NAME. The email should contain the IdP prefix for the user.
      --role string     Role name to be removed from the member.

GDCLOUD 廣泛標記

所有指令都可使用這些旗標:--configuration--format--help--project--quiet

詳情請參閱 gcloud CLI 參考資料總覽頁面。